What are the required steps to convert base 10 decimal system
number 7 870 323 166 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;
- 7 870 323 166 ÷ 2 = 3 935 161 583 + 0;
- 3 935 161 583 ÷ 2 = 1 967 580 791 + 1;
- 1 967 580 791 ÷ 2 = 983 790 395 + 1;
- 983 790 395 ÷ 2 = 491 895 197 + 1;
- 491 895 197 ÷ 2 = 245 947 598 + 1;
- 245 947 598 ÷ 2 = 122 973 799 + 0;
- 122 973 799 ÷ 2 = 61 486 899 + 1;
- 61 486 899 ÷ 2 = 30 743 449 + 1;
- 30 743 449 ÷ 2 = 15 371 724 + 1;
- 15 371 724 ÷ 2 = 7 685 862 + 0;
- 7 685 862 ÷ 2 = 3 842 931 + 0;
- 3 842 931 ÷ 2 = 1 921 465 + 1;
- 1 921 465 ÷ 2 = 960 732 + 1;
- 960 732 ÷ 2 = 480 366 + 0;
- 480 366 ÷ 2 = 240 183 + 0;
- 240 183 ÷ 2 = 120 091 + 1;
- 120 091 ÷ 2 = 60 045 + 1;
- 60 045 ÷ 2 = 30 022 + 1;
- 30 022 ÷ 2 = 15 011 + 0;
- 15 011 ÷ 2 = 7 505 + 1;
- 7 505 ÷ 2 = 3 752 + 1;
- 3 752 ÷ 2 = 1 876 + 0;
- 1 876 ÷ 2 = 938 + 0;
- 938 ÷ 2 = 469 + 0;
- 469 ÷ 2 = 234 + 1;
- 234 ÷ 2 = 117 + 0;
- 117 ÷ 2 = 58 + 1;
- 58 ÷ 2 = 29 + 0;
- 29 ÷ 2 = 14 + 1;
- 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.
7 870 323 166(10) Base 10 decimal system number converted and written as a base 2 unsigned binary equivalent:
7 870 323 166 (base 10) = 1 1101 0101 0001 1011 1001 1001 1101 1110 (base 2)
Spaces were used to group digits: for binary, by 4, for decimal, by 3.