What are the required steps to convert base 10 decimal system
number 1 304 428 420 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 304 428 420 ÷ 2 = 652 214 210 + 0;
- 652 214 210 ÷ 2 = 326 107 105 + 0;
- 326 107 105 ÷ 2 = 163 053 552 + 1;
- 163 053 552 ÷ 2 = 81 526 776 + 0;
- 81 526 776 ÷ 2 = 40 763 388 + 0;
- 40 763 388 ÷ 2 = 20 381 694 + 0;
- 20 381 694 ÷ 2 = 10 190 847 + 0;
- 10 190 847 ÷ 2 = 5 095 423 + 1;
- 5 095 423 ÷ 2 = 2 547 711 + 1;
- 2 547 711 ÷ 2 = 1 273 855 + 1;
- 1 273 855 ÷ 2 = 636 927 + 1;
- 636 927 ÷ 2 = 318 463 + 1;
- 318 463 ÷ 2 = 159 231 + 1;
- 159 231 ÷ 2 = 79 615 + 1;
- 79 615 ÷ 2 = 39 807 + 1;
- 39 807 ÷ 2 = 19 903 + 1;
- 19 903 ÷ 2 = 9 951 + 1;
- 9 951 ÷ 2 = 4 975 + 1;
- 4 975 ÷ 2 = 2 487 + 1;
- 2 487 ÷ 2 = 1 243 + 1;
- 1 243 ÷ 2 = 621 + 1;
- 621 ÷ 2 = 310 + 1;
- 310 ÷ 2 = 155 + 0;
- 155 ÷ 2 = 77 + 1;
- 77 ÷ 2 = 38 + 1;
- 38 ÷ 2 = 19 + 0;
- 19 ÷ 2 = 9 + 1;
- 9 ÷ 2 = 4 + 1;
- 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 304 428 420(10) Base 10 decimal system number converted and written as a base 2 unsigned binary equivalent:
1 304 428 420 (base 10) = 100 1101 1011 1111 1111 1111 1000 0100 (base 2)
Spaces were used to group digits: for binary, by 4, for decimal, by 3.