Double Integers don't seem to work too well either.
This test will bit test both Integers and Double Integers (with the same value) and output the result.
test1 as integer
test2 as double integer
test1 = 15234626
test2 = 15234626
print "testing: ";test1
print
print "32 bit result"
Show32Bit(test1)
print
print "64 bit result"
Show64Bit(test2)
sync : sync
wait key
end
function Show32Bit(v as integer)
print v; " = ";
for n = 0 to 31
if (v && (1 << n))
print "1";
else
print "0";
endif
next n
print
endfunction
function Show64Bit(v as double integer)
print v; " = ";
for n = 0 to 63
if (v && (1 << n))
print "1";
else
print "0";
endif
next n
print
endfunction
If they worked, Double Integers would very handy for storing information on an 8x8 game board whether it be chess, checkers, othello (reversi) etc.
Programming anything is an art, and you can't rush art.
Unless your name is Bob Ross, then you can do it in thirty minutes.