What are the required steps to convert base 10 decimal system
number 1 123 213 214 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 123 213 214 ÷ 2 = 561 606 607 + 0;
- 561 606 607 ÷ 2 = 280 803 303 + 1;
- 280 803 303 ÷ 2 = 140 401 651 + 1;
- 140 401 651 ÷ 2 = 70 200 825 + 1;
- 70 200 825 ÷ 2 = 35 100 412 + 1;
- 35 100 412 ÷ 2 = 17 550 206 + 0;
- 17 550 206 ÷ 2 = 8 775 103 + 0;
- 8 775 103 ÷ 2 = 4 387 551 + 1;
- 4 387 551 ÷ 2 = 2 193 775 + 1;
- 2 193 775 ÷ 2 = 1 096 887 + 1;
- 1 096 887 ÷ 2 = 548 443 + 1;
- 548 443 ÷ 2 = 274 221 + 1;
- 274 221 ÷ 2 = 137 110 + 1;
- 137 110 ÷ 2 = 68 555 + 0;
- 68 555 ÷ 2 = 34 277 + 1;
- 34 277 ÷ 2 = 17 138 + 1;
- 17 138 ÷ 2 = 8 569 + 0;
- 8 569 ÷ 2 = 4 284 + 1;
- 4 284 ÷ 2 = 2 142 + 0;
- 2 142 ÷ 2 = 1 071 + 0;
- 1 071 ÷ 2 = 535 + 1;
- 535 ÷ 2 = 267 + 1;
- 267 ÷ 2 = 133 + 1;
- 133 ÷ 2 = 66 + 1;
- 66 ÷ 2 = 33 + 0;
- 33 ÷ 2 = 16 + 1;
- 16 ÷ 2 = 8 + 0;
- 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 123 213 214(10) Base 10 decimal system number converted and written as a base 2 unsigned binary equivalent:
1 123 213 214 (base 10) = 100 0010 1111 0010 1101 1111 1001 1110 (base 2)
Spaces were used to group digits: for binary, by 4, for decimal, by 3.