What are the required steps to convert base 10 decimal system
number 19 216 843 254 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;
- 19 216 843 254 ÷ 2 = 9 608 421 627 + 0;
- 9 608 421 627 ÷ 2 = 4 804 210 813 + 1;
- 4 804 210 813 ÷ 2 = 2 402 105 406 + 1;
- 2 402 105 406 ÷ 2 = 1 201 052 703 + 0;
- 1 201 052 703 ÷ 2 = 600 526 351 + 1;
- 600 526 351 ÷ 2 = 300 263 175 + 1;
- 300 263 175 ÷ 2 = 150 131 587 + 1;
- 150 131 587 ÷ 2 = 75 065 793 + 1;
- 75 065 793 ÷ 2 = 37 532 896 + 1;
- 37 532 896 ÷ 2 = 18 766 448 + 0;
- 18 766 448 ÷ 2 = 9 383 224 + 0;
- 9 383 224 ÷ 2 = 4 691 612 + 0;
- 4 691 612 ÷ 2 = 2 345 806 + 0;
- 2 345 806 ÷ 2 = 1 172 903 + 0;
- 1 172 903 ÷ 2 = 586 451 + 1;
- 586 451 ÷ 2 = 293 225 + 1;
- 293 225 ÷ 2 = 146 612 + 1;
- 146 612 ÷ 2 = 73 306 + 0;
- 73 306 ÷ 2 = 36 653 + 0;
- 36 653 ÷ 2 = 18 326 + 1;
- 18 326 ÷ 2 = 9 163 + 0;
- 9 163 ÷ 2 = 4 581 + 1;
- 4 581 ÷ 2 = 2 290 + 1;
- 2 290 ÷ 2 = 1 145 + 0;
- 1 145 ÷ 2 = 572 + 1;
- 572 ÷ 2 = 286 + 0;
- 286 ÷ 2 = 143 + 0;
- 143 ÷ 2 = 71 + 1;
- 71 ÷ 2 = 35 + 1;
- 35 ÷ 2 = 17 + 1;
- 17 ÷ 2 = 8 + 1;
- 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.
19 216 843 254(10) Base 10 decimal system number converted and written as a base 2 unsigned binary equivalent:
19 216 843 254 (base 10) = 100 0111 1001 0110 1001 1100 0001 1111 0110 (base 2)
Spaces were used to group digits: for binary, by 4, for decimal, by 3.