I discovered something like this when using the rotate function. The calculator considers only the integer part of the number and coverts that to binary.
I think that both free42 and DM42 documentation should be updated with some of this, especially mentioning the upper limit of WSIZE (64 bits) because the behavior is different from HP42s (limited to 36bits).
There is no reference to WSIZE, WSIZE? (and Integer operations in general) in both documentations.
Now... question to @ThomasOkken?
I understand why hp42s went to 36bits.... can't free42 and DM42 go up to 128bits? Because 128bits is the nearest integer to 1e34 (in fact 112bits)...
2xDM15L, DM41L, DM42 SN#00855 (+one lost during shipping), DM41X #00707
TI-89 titanium, CASIO fx-cg50 (to play with micropython)
There are three kinds of people in the world: those who know math and those who don't.
can't free42 and DM42 go up to 128bits? Because 128bits is the nearest integer to 1e34 (in fact 112bits)...
Bumping the maximum WSIZE up to 112 would require a significant amount of work because the current code for binary functions in Free42 makes heavy use of 64-bit integers. Since 128-bit integers are not universally supported yet in C++, the code would have to be implemented using pairs of 64-bit integers. That's no fun and for my own purposes at least, 64 bits tends to be sufficient anyway. And if I needed more, chances are I'd need 128, not 112.
If I ever implement a proper type system in Free42, this might be something to revisit, but that's not something that will happen anytime soon, if ever...
Bumping the maximum WSIZE up to 112 would require a significant amount of work because the current code for binary functions in Free42 makes heavy use of 64-bit integers. Since 128-bit integers are not universally supported yet in C++, the code would have to be implemented using pairs of 64-bit integers. That's no fun and for my own purposes at least, 64 bits tends to be sufficient anyway. And if I needed more, chances are I'd need 128, not 112.
1+
1+
1+
1+
…
DM42 SN00284 running free42 & SN03835 running WP43S, DM15L, HP41CV, HP42S, HP35s, WP34S, HP Prime
If I ever implement a proper type system in Free42, this might be something to revisit, but that's not something that will happen anytime soon, if ever...
I will wait
2xDM15L, DM41L, DM42 SN#00855 (+one lost during shipping), DM41X #00707
TI-89 titanium, CASIO fx-cg50 (to play with micropython)
There are three kinds of people in the world: those who know math and those who don't.