Accessing Bits

BlitzMax Forums/BlitzMax Programming/Accessing Bits

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Pert:
I was testing out your code above. If I change the line:
Print bitisset(i, 7)
to
Print bitisset(i, 8)
the output is:
0
1
0
1
0
0
0
0
Which is binary "10", not "8". What gives?