The binary system

A byte can be used to hold an integer.
Using the binary system, each position, starting from the right, indicates a number...


Think about the binary number 10100010


binarytable.gif



(1 x 128) + (0 x 64) + (1 x 32) + (0 x 16) + (0 x 8) + (0 x 4) + (1 x 2) + (0 x 1)
= 162


So, the decimal equivalent of the binary number 10100010 is 162