What are the required steps to convert base 10 decimal system
number 157 106 007 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;
- 157 106 007 ÷ 2 = 78 553 003 + 1;
- 78 553 003 ÷ 2 = 39 276 501 + 1;
- 39 276 501 ÷ 2 = 19 638 250 + 1;
- 19 638 250 ÷ 2 = 9 819 125 + 0;
- 9 819 125 ÷ 2 = 4 909 562 + 1;
- 4 909 562 ÷ 2 = 2 454 781 + 0;
- 2 454 781 ÷ 2 = 1 227 390 + 1;
- 1 227 390 ÷ 2 = 613 695 + 0;
- 613 695 ÷ 2 = 306 847 + 1;
- 306 847 ÷ 2 = 153 423 + 1;
- 153 423 ÷ 2 = 76 711 + 1;
- 76 711 ÷ 2 = 38 355 + 1;
- 38 355 ÷ 2 = 19 177 + 1;
- 19 177 ÷ 2 = 9 588 + 1;
- 9 588 ÷ 2 = 4 794 + 0;
- 4 794 ÷ 2 = 2 397 + 0;
- 2 397 ÷ 2 = 1 198 + 1;
- 1 198 ÷ 2 = 599 + 0;
- 599 ÷ 2 = 299 + 1;
- 299 ÷ 2 = 149 + 1;
- 149 ÷ 2 = 74 + 1;
- 74 ÷ 2 = 37 + 0;
- 37 ÷ 2 = 18 + 1;
- 18 ÷ 2 = 9 + 0;
- 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.
157 106 007(10) Base 10 decimal system number converted and written as a base 2 unsigned binary equivalent:
157 106 007 (base 10) = 1001 0101 1101 0011 1111 0101 0111 (base 2)
Spaces were used to group digits: for binary, by 4, for decimal, by 3.