
11-06-2006, 08:05 PM
|
|
penguin.
|
Join Date: Jul 2004
Location: Berkeley, CA
Posts: 534
|
|
|
There are 32 bits.
I usually read binary backwards. The bit on the end is 1 (2^0). The second to last is 2 (2^1). The one before that is 4 (2^2). Then 8 (2^3), 16 (2^4), 32 (2^5), ... etc. You multiply the bit (0 or 1) by each of these numbers then add them up. The ones where the bit is 0 will just be 0, so they don't change the number.
000........1010
.............^.^
.............3..1
2^3 + 2^1 = 10, thus it represents 10. |
__________________
Killa Be: when i got that locker in 6th grade the only thing in it was a picture of a midget useing a firehose :/
|
|
|
|