What are the required steps to convert base 10 decimal system
number 42 820 343 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;
- 42 820 343 ÷ 2 = 21 410 171 + 1;
- 21 410 171 ÷ 2 = 10 705 085 + 1;
- 10 705 085 ÷ 2 = 5 352 542 + 1;
- 5 352 542 ÷ 2 = 2 676 271 + 0;
- 2 676 271 ÷ 2 = 1 338 135 + 1;
- 1 338 135 ÷ 2 = 669 067 + 1;
- 669 067 ÷ 2 = 334 533 + 1;
- 334 533 ÷ 2 = 167 266 + 1;
- 167 266 ÷ 2 = 83 633 + 0;
- 83 633 ÷ 2 = 41 816 + 1;
- 41 816 ÷ 2 = 20 908 + 0;
- 20 908 ÷ 2 = 10 454 + 0;
- 10 454 ÷ 2 = 5 227 + 0;
- 5 227 ÷ 2 = 2 613 + 1;
- 2 613 ÷ 2 = 1 306 + 1;
- 1 306 ÷ 2 = 653 + 0;
- 653 ÷ 2 = 326 + 1;
- 326 ÷ 2 = 163 + 0;
- 163 ÷ 2 = 81 + 1;
- 81 ÷ 2 = 40 + 1;
- 40 ÷ 2 = 20 + 0;
- 20 ÷ 2 = 10 + 0;
- 10 ÷ 2 = 5 + 0;
- 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.
42 820 343(10) Base 10 decimal system number converted and written as a base 2 unsigned binary equivalent:
42 820 343 (base 10) = 10 1000 1101 0110 0010 1111 0111 (base 2)
Spaces were used to group digits: for binary, by 4, for decimal, by 3.