@Rook
what would you need it for?
in the end, it's only a display issue, not a storing issue.
you can display each and every number in your program in binary format.
displaying a number always means to convert it to a string.
decimal transscription is done automatically for some outputs,
thus you can just "Debug A", but under the hood it's "Debug Str(A)",
and its up to you to "Debug Bin(A)"
input handling also works via Strings,
you can convert a binary string into a value using Val() and adding a preceding "%".
Code: Select all
bin$ = "%"+Bin(170)
Debug bin$
binary.l = Val(bin$)
Debug binary
Debug Bin(binary)
PS:
here some further 'literature' about how to handle bits and what you can do with them:
Bit Twiddling Hacks: http://graphics.stanford.edu/~seander/bithacks.html
oh... and have a nice day.