How To Convert A Decimal Number To A Binary Number

Converting a decimal number to a binary number is easy. You just have to divide the decimal number by 2. If the division yields an integer, note 0, otherwise 1.
Now take the integer part of the division and divide it again by 2. Here, too, the value 0 or 1 is determined analogously.
This is done until the result of the division is 0.

Here is an example:

Number:2IntegerRest
123:2611
61:2301
30:2150
15:271
7:231
3:211
1:201

Then you take the remaining numbers from bottom to top. The Result is 1111011.

(Visited 193 times, 1 visits today)

Leave a Comment