What are the required steps to convert base 10 decimal system
number 2 345 678 842 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;
- 2 345 678 842 ÷ 2 = 1 172 839 421 + 0;
- 1 172 839 421 ÷ 2 = 586 419 710 + 1;
- 586 419 710 ÷ 2 = 293 209 855 + 0;
- 293 209 855 ÷ 2 = 146 604 927 + 1;
- 146 604 927 ÷ 2 = 73 302 463 + 1;
- 73 302 463 ÷ 2 = 36 651 231 + 1;
- 36 651 231 ÷ 2 = 18 325 615 + 1;
- 18 325 615 ÷ 2 = 9 162 807 + 1;
- 9 162 807 ÷ 2 = 4 581 403 + 1;
- 4 581 403 ÷ 2 = 2 290 701 + 1;
- 2 290 701 ÷ 2 = 1 145 350 + 1;
- 1 145 350 ÷ 2 = 572 675 + 0;
- 572 675 ÷ 2 = 286 337 + 1;
- 286 337 ÷ 2 = 143 168 + 1;
- 143 168 ÷ 2 = 71 584 + 0;
- 71 584 ÷ 2 = 35 792 + 0;
- 35 792 ÷ 2 = 17 896 + 0;
- 17 896 ÷ 2 = 8 948 + 0;
- 8 948 ÷ 2 = 4 474 + 0;
- 4 474 ÷ 2 = 2 237 + 0;
- 2 237 ÷ 2 = 1 118 + 1;
- 1 118 ÷ 2 = 559 + 0;
- 559 ÷ 2 = 279 + 1;
- 279 ÷ 2 = 139 + 1;
- 139 ÷ 2 = 69 + 1;
- 69 ÷ 2 = 34 + 1;
- 34 ÷ 2 = 17 + 0;
- 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.
2 345 678 842(10) Base 10 decimal system number converted and written as a base 2 unsigned binary equivalent:
2 345 678 842 (base 10) = 1000 1011 1101 0000 0011 0111 1111 1010 (base 2)
Spaces were used to group digits: for binary, by 4, for decimal, by 3.