What are the required steps to convert base 10 decimal system
number 9 786 521 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;
- 9 786 521 ÷ 2 = 4 893 260 + 1;
- 4 893 260 ÷ 2 = 2 446 630 + 0;
- 2 446 630 ÷ 2 = 1 223 315 + 0;
- 1 223 315 ÷ 2 = 611 657 + 1;
- 611 657 ÷ 2 = 305 828 + 1;
- 305 828 ÷ 2 = 152 914 + 0;
- 152 914 ÷ 2 = 76 457 + 0;
- 76 457 ÷ 2 = 38 228 + 1;
- 38 228 ÷ 2 = 19 114 + 0;
- 19 114 ÷ 2 = 9 557 + 0;
- 9 557 ÷ 2 = 4 778 + 1;
- 4 778 ÷ 2 = 2 389 + 0;
- 2 389 ÷ 2 = 1 194 + 1;
- 1 194 ÷ 2 = 597 + 0;
- 597 ÷ 2 = 298 + 1;
- 298 ÷ 2 = 149 + 0;
- 149 ÷ 2 = 74 + 1;
- 74 ÷ 2 = 37 + 0;
- 37 ÷ 2 = 18 + 1;
- 18 ÷ 2 = 9 + 0;
- 9 ÷ 2 = 4 + 1;
- 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.
9 786 521(10) Base 10 decimal system number converted and written as a base 2 unsigned binary equivalent:
9 786 521 (base 10) = 1001 0101 0101 0100 1001 1001 (base 2)
Spaces were used to group digits: for binary, by 4, for decimal, by 3.