How to convert a decimal to binary code


B) Numbers ordered vertically:
0
A
A
– After the horizontal concatenation of binary numbers above, we obtain the value: 110.

3- To find the binary value of a decimal number, we proceed to the concatenation of all remnants of the division number and quotients of non-zero by the base 2, and are ordered in reverse order of operation vertical division (see the example in step 01), that is to say, from bottom to top and from left to right.

Example:
Division base number = quotient and remainder
121/60 = 1 2
60/30 2 = 0
30/15 2 = 0
15/2 = 1 7
7/3 = 1 2
3/2 = 1 1
1/2 = 0 1 (null quotient thus, end the division).
The binary value of decimal 121 is: 1111001