What are the required steps to convert base 10 decimal system
number 12 345 678 901 217 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;
- 12 345 678 901 217 ÷ 2 = 6 172 839 450 608 + 1;
- 6 172 839 450 608 ÷ 2 = 3 086 419 725 304 + 0;
- 3 086 419 725 304 ÷ 2 = 1 543 209 862 652 + 0;
- 1 543 209 862 652 ÷ 2 = 771 604 931 326 + 0;
- 771 604 931 326 ÷ 2 = 385 802 465 663 + 0;
- 385 802 465 663 ÷ 2 = 192 901 232 831 + 1;
- 192 901 232 831 ÷ 2 = 96 450 616 415 + 1;
- 96 450 616 415 ÷ 2 = 48 225 308 207 + 1;
- 48 225 308 207 ÷ 2 = 24 112 654 103 + 1;
- 24 112 654 103 ÷ 2 = 12 056 327 051 + 1;
- 12 056 327 051 ÷ 2 = 6 028 163 525 + 1;
- 6 028 163 525 ÷ 2 = 3 014 081 762 + 1;
- 3 014 081 762 ÷ 2 = 1 507 040 881 + 0;
- 1 507 040 881 ÷ 2 = 753 520 440 + 1;
- 753 520 440 ÷ 2 = 376 760 220 + 0;
- 376 760 220 ÷ 2 = 188 380 110 + 0;
- 188 380 110 ÷ 2 = 94 190 055 + 0;
- 94 190 055 ÷ 2 = 47 095 027 + 1;
- 47 095 027 ÷ 2 = 23 547 513 + 1;
- 23 547 513 ÷ 2 = 11 773 756 + 1;
- 11 773 756 ÷ 2 = 5 886 878 + 0;
- 5 886 878 ÷ 2 = 2 943 439 + 0;
- 2 943 439 ÷ 2 = 1 471 719 + 1;
- 1 471 719 ÷ 2 = 735 859 + 1;
- 735 859 ÷ 2 = 367 929 + 1;
- 367 929 ÷ 2 = 183 964 + 1;
- 183 964 ÷ 2 = 91 982 + 0;
- 91 982 ÷ 2 = 45 991 + 0;
- 45 991 ÷ 2 = 22 995 + 1;
- 22 995 ÷ 2 = 11 497 + 1;
- 11 497 ÷ 2 = 5 748 + 1;
- 5 748 ÷ 2 = 2 874 + 0;
- 2 874 ÷ 2 = 1 437 + 0;
- 1 437 ÷ 2 = 718 + 1;
- 718 ÷ 2 = 359 + 0;
- 359 ÷ 2 = 179 + 1;
- 179 ÷ 2 = 89 + 1;
- 89 ÷ 2 = 44 + 1;
- 44 ÷ 2 = 22 + 0;
- 22 ÷ 2 = 11 + 0;
- 11 ÷ 2 = 5 + 1;
- 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.
12 345 678 901 217(10) Base 10 decimal system number converted and written as a base 2 unsigned binary equivalent:
12 345 678 901 217 (base 10) = 1011 0011 1010 0111 0011 1100 1110 0010 1111 1110 0001 (base 2)
Spaces were used to group digits: for binary, by 4, for decimal, by 3.