What are the required steps to convert base 10 decimal system
number 1 157 234 845 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 157 234 845 ÷ 2 = 578 617 422 + 1;
- 578 617 422 ÷ 2 = 289 308 711 + 0;
- 289 308 711 ÷ 2 = 144 654 355 + 1;
- 144 654 355 ÷ 2 = 72 327 177 + 1;
- 72 327 177 ÷ 2 = 36 163 588 + 1;
- 36 163 588 ÷ 2 = 18 081 794 + 0;
- 18 081 794 ÷ 2 = 9 040 897 + 0;
- 9 040 897 ÷ 2 = 4 520 448 + 1;
- 4 520 448 ÷ 2 = 2 260 224 + 0;
- 2 260 224 ÷ 2 = 1 130 112 + 0;
- 1 130 112 ÷ 2 = 565 056 + 0;
- 565 056 ÷ 2 = 282 528 + 0;
- 282 528 ÷ 2 = 141 264 + 0;
- 141 264 ÷ 2 = 70 632 + 0;
- 70 632 ÷ 2 = 35 316 + 0;
- 35 316 ÷ 2 = 17 658 + 0;
- 17 658 ÷ 2 = 8 829 + 0;
- 8 829 ÷ 2 = 4 414 + 1;
- 4 414 ÷ 2 = 2 207 + 0;
- 2 207 ÷ 2 = 1 103 + 1;
- 1 103 ÷ 2 = 551 + 1;
- 551 ÷ 2 = 275 + 1;
- 275 ÷ 2 = 137 + 1;
- 137 ÷ 2 = 68 + 1;
- 68 ÷ 2 = 34 + 0;
- 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.
1 157 234 845(10) Base 10 decimal system number converted and written as a base 2 unsigned binary equivalent:
1 157 234 845 (base 10) = 100 0100 1111 1010 0000 0000 1001 1101 (base 2)
Spaces were used to group digits: for binary, by 4, for decimal, by 3.