What are the required steps to convert base 10 decimal system
number 987 654 120 116 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;
- 987 654 120 116 ÷ 2 = 493 827 060 058 + 0;
- 493 827 060 058 ÷ 2 = 246 913 530 029 + 0;
- 246 913 530 029 ÷ 2 = 123 456 765 014 + 1;
- 123 456 765 014 ÷ 2 = 61 728 382 507 + 0;
- 61 728 382 507 ÷ 2 = 30 864 191 253 + 1;
- 30 864 191 253 ÷ 2 = 15 432 095 626 + 1;
- 15 432 095 626 ÷ 2 = 7 716 047 813 + 0;
- 7 716 047 813 ÷ 2 = 3 858 023 906 + 1;
- 3 858 023 906 ÷ 2 = 1 929 011 953 + 0;
- 1 929 011 953 ÷ 2 = 964 505 976 + 1;
- 964 505 976 ÷ 2 = 482 252 988 + 0;
- 482 252 988 ÷ 2 = 241 126 494 + 0;
- 241 126 494 ÷ 2 = 120 563 247 + 0;
- 120 563 247 ÷ 2 = 60 281 623 + 1;
- 60 281 623 ÷ 2 = 30 140 811 + 1;
- 30 140 811 ÷ 2 = 15 070 405 + 1;
- 15 070 405 ÷ 2 = 7 535 202 + 1;
- 7 535 202 ÷ 2 = 3 767 601 + 0;
- 3 767 601 ÷ 2 = 1 883 800 + 1;
- 1 883 800 ÷ 2 = 941 900 + 0;
- 941 900 ÷ 2 = 470 950 + 0;
- 470 950 ÷ 2 = 235 475 + 0;
- 235 475 ÷ 2 = 117 737 + 1;
- 117 737 ÷ 2 = 58 868 + 1;
- 58 868 ÷ 2 = 29 434 + 0;
- 29 434 ÷ 2 = 14 717 + 0;
- 14 717 ÷ 2 = 7 358 + 1;
- 7 358 ÷ 2 = 3 679 + 0;
- 3 679 ÷ 2 = 1 839 + 1;
- 1 839 ÷ 2 = 919 + 1;
- 919 ÷ 2 = 459 + 1;
- 459 ÷ 2 = 229 + 1;
- 229 ÷ 2 = 114 + 1;
- 114 ÷ 2 = 57 + 0;
- 57 ÷ 2 = 28 + 1;
- 28 ÷ 2 = 14 + 0;
- 14 ÷ 2 = 7 + 0;
- 7 ÷ 2 = 3 + 1;
- 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.
987 654 120 116(10) Base 10 decimal system number converted and written as a base 2 unsigned binary equivalent:
987 654 120 116 (base 10) = 1110 0101 1111 0100 1100 0101 1110 0010 1011 0100 (base 2)
Spaces were used to group digits: for binary, by 4, for decimal, by 3.