What are the required steps to convert base 10 decimal system
number 2 871 214 647 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;
- 2 871 214 647 ÷ 2 = 1 435 607 323 + 1;
- 1 435 607 323 ÷ 2 = 717 803 661 + 1;
- 717 803 661 ÷ 2 = 358 901 830 + 1;
- 358 901 830 ÷ 2 = 179 450 915 + 0;
- 179 450 915 ÷ 2 = 89 725 457 + 1;
- 89 725 457 ÷ 2 = 44 862 728 + 1;
- 44 862 728 ÷ 2 = 22 431 364 + 0;
- 22 431 364 ÷ 2 = 11 215 682 + 0;
- 11 215 682 ÷ 2 = 5 607 841 + 0;
- 5 607 841 ÷ 2 = 2 803 920 + 1;
- 2 803 920 ÷ 2 = 1 401 960 + 0;
- 1 401 960 ÷ 2 = 700 980 + 0;
- 700 980 ÷ 2 = 350 490 + 0;
- 350 490 ÷ 2 = 175 245 + 0;
- 175 245 ÷ 2 = 87 622 + 1;
- 87 622 ÷ 2 = 43 811 + 0;
- 43 811 ÷ 2 = 21 905 + 1;
- 21 905 ÷ 2 = 10 952 + 1;
- 10 952 ÷ 2 = 5 476 + 0;
- 5 476 ÷ 2 = 2 738 + 0;
- 2 738 ÷ 2 = 1 369 + 0;
- 1 369 ÷ 2 = 684 + 1;
- 684 ÷ 2 = 342 + 0;
- 342 ÷ 2 = 171 + 0;
- 171 ÷ 2 = 85 + 1;
- 85 ÷ 2 = 42 + 1;
- 42 ÷ 2 = 21 + 0;
- 21 ÷ 2 = 10 + 1;
- 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.
2 871 214 647(10) Base 10 decimal system number converted and written as a base 2 unsigned binary equivalent:
2 871 214 647 (base 10) = 1010 1011 0010 0011 0100 0010 0011 0111 (base 2)
Spaces were used to group digits: for binary, by 4, for decimal, by 3.