What are the required steps to convert base 10 decimal system
number 220 120 125 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 125 ÷ 2 = 110 060 062 + 1;
- 110 060 062 ÷ 2 = 55 030 031 + 0;
- 55 030 031 ÷ 2 = 27 515 015 + 1;
- 27 515 015 ÷ 2 = 13 757 507 + 1;
- 13 757 507 ÷ 2 = 6 878 753 + 1;
- 6 878 753 ÷ 2 = 3 439 376 + 1;
- 3 439 376 ÷ 2 = 1 719 688 + 0;
- 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 125(10) Base 10 decimal system number converted and written as a base 2 unsigned binary equivalent:
220 120 125 (base 10) = 1101 0001 1110 1100 0100 0011 1101 (base 2)
Spaces were used to group digits: for binary, by 4, for decimal, by 3.