Quote:
Originally Posted by drekes
I get the binary stuff, but i don't know how to convert it to (1<<0) for example.
I'll try to loop and compare them.
Thanks.
|
1<<0 is just a scripting representation of a binary number. There are probably ways to find out the bit position without looping. I would suggest looking at the link Bugsy posted for "bit hacks".
__________________