10-13-2008 09:30 AM
10-13-2008 09:35 AM
You can use number to boolean array, then index the bits of interest out of the array.
You could also use boolean logic. If you want bit 3, you could AND it with 8 (2^3) and you will have effectively masked off all the other bits and showed the one of interest. Then you can see if that number is 0 (for false) or 8 (for true).