There is a strange bug in v1.1 that returns a decimal value when I do this:
FOR I=0,3 DO K = PEEK(I) L = BAND(K, 15) H = SHR(K, 4) PRINT(L) PRINT(R) END |
The output is:
0 1 2 3.125 4 5.25 6 7.375 |
My assumption is rather than converting to an integer and shifting, you're returning i / 2^s without casting to an integer in the result.
P#13331 2015-08-30 17:03 ( Edited 2015-08-31 13:29)
[Please log in to post a comment]