What are the required steps to convert base 10 decimal system
number 21 120 105 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;
- 21 120 105 ÷ 2 = 10 560 052 + 1;
- 10 560 052 ÷ 2 = 5 280 026 + 0;
- 5 280 026 ÷ 2 = 2 640 013 + 0;
- 2 640 013 ÷ 2 = 1 320 006 + 1;
- 1 320 006 ÷ 2 = 660 003 + 0;
- 660 003 ÷ 2 = 330 001 + 1;
- 330 001 ÷ 2 = 165 000 + 1;
- 165 000 ÷ 2 = 82 500 + 0;
- 82 500 ÷ 2 = 41 250 + 0;
- 41 250 ÷ 2 = 20 625 + 0;
- 20 625 ÷ 2 = 10 312 + 1;
- 10 312 ÷ 2 = 5 156 + 0;
- 5 156 ÷ 2 = 2 578 + 0;
- 2 578 ÷ 2 = 1 289 + 0;
- 1 289 ÷ 2 = 644 + 1;
- 644 ÷ 2 = 322 + 0;
- 322 ÷ 2 = 161 + 0;
- 161 ÷ 2 = 80 + 1;
- 80 ÷ 2 = 40 + 0;
- 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.
21 120 105(10) Base 10 decimal system number converted and written as a base 2 unsigned binary equivalent:
21 120 105 (base 10) = 1 0100 0010 0100 0100 0110 1001 (base 2)
Spaces were used to group digits: for binary, by 4, for decimal, by 3.