What are the required steps to convert base 10 decimal system
number 220 120 171 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;
- 220 120 171 ÷ 2 = 110 060 085 + 1;
- 110 060 085 ÷ 2 = 55 030 042 + 1;
- 55 030 042 ÷ 2 = 27 515 021 + 0;
- 27 515 021 ÷ 2 = 13 757 510 + 1;
- 13 757 510 ÷ 2 = 6 878 755 + 0;
- 6 878 755 ÷ 2 = 3 439 377 + 1;
- 3 439 377 ÷ 2 = 1 719 688 + 1;
- 1 719 688 ÷ 2 = 859 844 + 0;
- 859 844 ÷ 2 = 429 922 + 0;
- 429 922 ÷ 2 = 214 961 + 0;
- 214 961 ÷ 2 = 107 480 + 1;
- 107 480 ÷ 2 = 53 740 + 0;
- 53 740 ÷ 2 = 26 870 + 0;
- 26 870 ÷ 2 = 13 435 + 0;
- 13 435 ÷ 2 = 6 717 + 1;
- 6 717 ÷ 2 = 3 358 + 1;
- 3 358 ÷ 2 = 1 679 + 0;
- 1 679 ÷ 2 = 839 + 1;
- 839 ÷ 2 = 419 + 1;
- 419 ÷ 2 = 209 + 1;
- 209 ÷ 2 = 104 + 1;
- 104 ÷ 2 = 52 + 0;
- 52 ÷ 2 = 26 + 0;
- 26 ÷ 2 = 13 + 0;
- 13 ÷ 2 = 6 + 1;
- 6 ÷ 2 = 3 + 0;
- 3 ÷ 2 = 1 + 1;
- 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.
220 120 171(10) Base 10 decimal system number converted and written as a base 2 unsigned binary equivalent:
220 120 171 (base 10) = 1101 0001 1110 1100 0100 0110 1011 (base 2)
Spaces were used to group digits: for binary, by 4, for decimal, by 3.