Repeated Division-by-2 Method

An easy method of converting decimal to binary number equivalents is to write down the decimal number and to continually divide-by-2 (two) to give a result and a remainder of either a “1” or a “0” until the final result equals zero.

For example.  Convert the decimal number 254 into its binary number equivalent.

Dividing each decimal number by 2 as will give a result plus a remainder. If the decimal number being divided is “even” then the remainder will be equal to “0”. If the decimal number is odd then the result will not divide completely and the remainder will be  “1”. The binary result is achieved by placing all the remainders in order with the least significant bit (LSB) being at the top and the most significant bit (MSB) being at the bottom.

 

Number254
Divided by 2
Result127Remainder0 (LSB)
Divided by 2
Result63Remainder1
Divided by 2
Result31Remainder1
Divided by 2
Result15Remainder1
Divided by 2
Result7Remainder1
Divided by 2
Result3Remainder1
Divided by 2
Result1Remainder1
Divided by 2
Result0Remainder1 (MSB)

 

So the Binary number is : 11111110

Also Read :

How to Convert Binary Number into Decimal Number

Hexadecimal numbers and their conversions

Credit: Delhi Parents Association