What are the required steps to convert base 10 decimal system
number 1 204 604 116 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 204 604 116 ÷ 2 = 602 302 058 + 0;
- 602 302 058 ÷ 2 = 301 151 029 + 0;
- 301 151 029 ÷ 2 = 150 575 514 + 1;
- 150 575 514 ÷ 2 = 75 287 757 + 0;
- 75 287 757 ÷ 2 = 37 643 878 + 1;
- 37 643 878 ÷ 2 = 18 821 939 + 0;
- 18 821 939 ÷ 2 = 9 410 969 + 1;
- 9 410 969 ÷ 2 = 4 705 484 + 1;
- 4 705 484 ÷ 2 = 2 352 742 + 0;
- 2 352 742 ÷ 2 = 1 176 371 + 0;
- 1 176 371 ÷ 2 = 588 185 + 1;
- 588 185 ÷ 2 = 294 092 + 1;
- 294 092 ÷ 2 = 147 046 + 0;
- 147 046 ÷ 2 = 73 523 + 0;
- 73 523 ÷ 2 = 36 761 + 1;
- 36 761 ÷ 2 = 18 380 + 1;
- 18 380 ÷ 2 = 9 190 + 0;
- 9 190 ÷ 2 = 4 595 + 0;
- 4 595 ÷ 2 = 2 297 + 1;
- 2 297 ÷ 2 = 1 148 + 1;
- 1 148 ÷ 2 = 574 + 0;
- 574 ÷ 2 = 287 + 0;
- 287 ÷ 2 = 143 + 1;
- 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.
1 204 604 116(10) Base 10 decimal system number converted and written as a base 2 unsigned binary equivalent:
1 204 604 116 (base 10) = 100 0111 1100 1100 1100 1100 1101 0100 (base 2)
Spaces were used to group digits: for binary, by 4, for decimal, by 3.