Binary Math for Everyone

See also my HEX2DEC page for a better understanding of conversion between different base numbers.

This is just a quick primer for those wanting to learn how to convert by hand between binary and decimal.
Binary numbers are composed of only 1 and 0. Every positive decimal interger can be expressed in binary.
By contrast, decinal numbers are composed of 0 through 9.
Here is a binary number:
0001101100
To convert this to a decimal number we need to define the placement of the numbers.
DEC 512 256 128 64 32 16 8 4 2 1
BIN 0 0 0 1 1 0 1 1 0 0

  1. Reading from left to right, we have a one in the Millions posistion so we start with 64.
  2. Next, there is a one in the Hundred Thousands posistion so we add 32 to 64 and get 96.
  3. We have a zero in the Ten Thousands position so we do not add 16 and we are left with 96 still.
  4. There is a one in the Thousands posistion so we add 8 to 96 and get 104.
  5. The one in the Hundreds position adds 4 to 104 to get 108.
  6. There are no ones in the Tens or the Ones posistion. Our final is 108.
  7. Binary 1101100 equals Decimal 108.

Here is a decimal number:
234
To convert this to binary, we need to find the highest of the of these numbers 512, 256, 128, 64, 32, 16, 8, 4, 2, or 1 that is less than the number we are looking at.
DEC 512 256 128 64 32 16 8 4 2 1
BIN 0 0 1 1 1 0 1 0 1 0
  1. First we find that 512 and 256 are bigger than 234 but 128 is not. So we place a one in the 128 column.
  2. We subtract 128 from 234 and get 106. We put a one in the 64 column because it is smaller than 106.
  3. We subract 64 from 106 and get 42. We put a one in the 32 column because it is smaller than 42.
  4. We subract 32 from 42 and get 10. We put a zero in the 16 column because it is bigger than 10. We can put a 1 in the 8 column because it is smaller than 10.
  5. We subract 8 from 10 and get 2. We put a zero in the 4 column because it is bigger than 2. We put a one the 2 column because it is equal to 2.
  6. We subtract 2 from 2 and get zero. We put a zero in the 1 column because it is smaller than 0.
  7. Decimal 234 equals Binary 11101010.