Topics / Data Representation / Converting decimal to binary

Converting decimal to binary

There are several ways to convert decimal (sometimes called denary, or base 10) numbers into binary.

The video below gives a step by step guide on how to convert decimal numbers into binary code using the ‘divide by 2’ method.

Here’s how it works:

  1. Divide the decimal number by 2.
  2. If the number will not divide equally by 2, then round down the answer to the nearest whole number (integer).
  3. Keep a note of the remainder, it should be either 0 or 1.
  4. Keep repeating the above steps, dividing each answer by 2, until you reach zero.
  5. Write out all the remainders, from bottom to top.  This is your binary solution.

Decimal to binary, a step by step video guide:

Topics / Data Representation / Converting decimal to binary