What are the required steps to convert base 10 decimal system
number 1 124 545 305 to base 2 unsigned binary equivalent?
- A number written in base ten, or a decimal system number, is a number written using the digits 0 through 9. A number written in base two, or a binary system number, is a number written using only the digits 0 and 1.
1. Divide the number repeatedly by 2:
Keep track of each remainder.
Stop when you get a quotient that is equal to zero.
- division = quotient + remainder;
- 1 124 545 305 ÷ 2 = 562 272 652 + 1;
- 562 272 652 ÷ 2 = 281 136 326 + 0;
- 281 136 326 ÷ 2 = 140 568 163 + 0;
- 140 568 163 ÷ 2 = 70 284 081 + 1;
- 70 284 081 ÷ 2 = 35 142 040 + 1;
- 35 142 040 ÷ 2 = 17 571 020 + 0;
- 17 571 020 ÷ 2 = 8 785 510 + 0;
- 8 785 510 ÷ 2 = 4 392 755 + 0;
- 4 392 755 ÷ 2 = 2 196 377 + 1;
- 2 196 377 ÷ 2 = 1 098 188 + 1;
- 1 098 188 ÷ 2 = 549 094 + 0;
- 549 094 ÷ 2 = 274 547 + 0;
- 274 547 ÷ 2 = 137 273 + 1;
- 137 273 ÷ 2 = 68 636 + 1;
- 68 636 ÷ 2 = 34 318 + 0;
- 34 318 ÷ 2 = 17 159 + 0;
- 17 159 ÷ 2 = 8 579 + 1;
- 8 579 ÷ 2 = 4 289 + 1;
- 4 289 ÷ 2 = 2 144 + 1;
- 2 144 ÷ 2 = 1 072 + 0;
- 1 072 ÷ 2 = 536 + 0;
- 536 ÷ 2 = 268 + 0;
- 268 ÷ 2 = 134 + 0;
- 134 ÷ 2 = 67 + 0;
- 67 ÷ 2 = 33 + 1;
- 33 ÷ 2 = 16 + 1;
- 16 ÷ 2 = 8 + 0;
- 8 ÷ 2 = 4 + 0;
- 4 ÷ 2 = 2 + 0;
- 2 ÷ 2 = 1 + 0;
- 1 ÷ 2 = 0 + 1;
2. Construct the base 2 representation of the positive number:
Take all the remainders starting from the bottom of the list constructed above.
1 124 545 305(10) Base 10 decimal system number converted and written as a base 2 unsigned binary equivalent:
1 124 545 305 (base 10) = 100 0011 0000 0111 0011 0011 0001 1001 (base 2)
Spaces were used to group digits: for binary, by 4, for decimal, by 3.