What are the required steps to convert base 10 decimal system
number 5 868 718 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;
- 5 868 718 ÷ 2 = 2 934 359 + 0;
- 2 934 359 ÷ 2 = 1 467 179 + 1;
- 1 467 179 ÷ 2 = 733 589 + 1;
- 733 589 ÷ 2 = 366 794 + 1;
- 366 794 ÷ 2 = 183 397 + 0;
- 183 397 ÷ 2 = 91 698 + 1;
- 91 698 ÷ 2 = 45 849 + 0;
- 45 849 ÷ 2 = 22 924 + 1;
- 22 924 ÷ 2 = 11 462 + 0;
- 11 462 ÷ 2 = 5 731 + 0;
- 5 731 ÷ 2 = 2 865 + 1;
- 2 865 ÷ 2 = 1 432 + 1;
- 1 432 ÷ 2 = 716 + 0;
- 716 ÷ 2 = 358 + 0;
- 358 ÷ 2 = 179 + 0;
- 179 ÷ 2 = 89 + 1;
- 89 ÷ 2 = 44 + 1;
- 44 ÷ 2 = 22 + 0;
- 22 ÷ 2 = 11 + 0;
- 11 ÷ 2 = 5 + 1;
- 5 ÷ 2 = 2 + 1;
- 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.
5 868 718(10) Base 10 decimal system number converted and written as a base 2 unsigned binary equivalent:
5 868 718 (base 10) = 101 1001 1000 1100 1010 1110 (base 2)
Spaces were used to group digits: for binary, by 4, for decimal, by 3.