Decimal to Binary

Decimal to Binary

A given integer decimal number can be converted to its equivalent binary number by performing the following steps :

  1. Divide the number by 2.
  2. Write the quotient below the number and take it as a new number.
  3. Write the remainder in a separate column, termed as remainder column.
  4. Repeat steps 1 to 3 until new number becomes ‘0’
  5. Obtain the required binary number by writing the digits of remainder column from bottom to top.

Example 1: (25)10 = (. )2 Remainder column

2

25

2

12

1

2

6

0

2

3

0

2

1

1

0

1

arrow

Thus (25)10 = (11001) 2

Example 2 : (42)10 = (.) 2

Remainder column

2

42

2

21

0

2

10

1

2

5

0

2

2

1

2

1

0

0

1

arrow

Hence , (42)10 = ( 101010 ) 2

Last modified: Tuesday, 8 November 2011, 6:13 AM