What are the required steps to convert base 10 decimal system
number 12 345 678 901 234 929 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 234 929 ÷ 2 = 6 172 839 450 617 464 + 1;
- 6 172 839 450 617 464 ÷ 2 = 3 086 419 725 308 732 + 0;
- 3 086 419 725 308 732 ÷ 2 = 1 543 209 862 654 366 + 0;
- 1 543 209 862 654 366 ÷ 2 = 771 604 931 327 183 + 0;
- 771 604 931 327 183 ÷ 2 = 385 802 465 663 591 + 1;
- 385 802 465 663 591 ÷ 2 = 192 901 232 831 795 + 1;
- 192 901 232 831 795 ÷ 2 = 96 450 616 415 897 + 1;
- 96 450 616 415 897 ÷ 2 = 48 225 308 207 948 + 1;
- 48 225 308 207 948 ÷ 2 = 24 112 654 103 974 + 0;
- 24 112 654 103 974 ÷ 2 = 12 056 327 051 987 + 0;
- 12 056 327 051 987 ÷ 2 = 6 028 163 525 993 + 1;
- 6 028 163 525 993 ÷ 2 = 3 014 081 762 996 + 1;
- 3 014 081 762 996 ÷ 2 = 1 507 040 881 498 + 0;
- 1 507 040 881 498 ÷ 2 = 753 520 440 749 + 0;
- 753 520 440 749 ÷ 2 = 376 760 220 374 + 1;
- 376 760 220 374 ÷ 2 = 188 380 110 187 + 0;
- 188 380 110 187 ÷ 2 = 94 190 055 093 + 1;
- 94 190 055 093 ÷ 2 = 47 095 027 546 + 1;
- 47 095 027 546 ÷ 2 = 23 547 513 773 + 0;
- 23 547 513 773 ÷ 2 = 11 773 756 886 + 1;
- 11 773 756 886 ÷ 2 = 5 886 878 443 + 0;
- 5 886 878 443 ÷ 2 = 2 943 439 221 + 1;
- 2 943 439 221 ÷ 2 = 1 471 719 610 + 1;
- 1 471 719 610 ÷ 2 = 735 859 805 + 0;
- 735 859 805 ÷ 2 = 367 929 902 + 1;
- 367 929 902 ÷ 2 = 183 964 951 + 0;
- 183 964 951 ÷ 2 = 91 982 475 + 1;
- 91 982 475 ÷ 2 = 45 991 237 + 1;
- 45 991 237 ÷ 2 = 22 995 618 + 1;
- 22 995 618 ÷ 2 = 11 497 809 + 0;
- 11 497 809 ÷ 2 = 5 748 904 + 1;
- 5 748 904 ÷ 2 = 2 874 452 + 0;
- 2 874 452 ÷ 2 = 1 437 226 + 0;
- 1 437 226 ÷ 2 = 718 613 + 0;
- 718 613 ÷ 2 = 359 306 + 1;
- 359 306 ÷ 2 = 179 653 + 0;
- 179 653 ÷ 2 = 89 826 + 1;
- 89 826 ÷ 2 = 44 913 + 0;
- 44 913 ÷ 2 = 22 456 + 1;
- 22 456 ÷ 2 = 11 228 + 0;
- 11 228 ÷ 2 = 5 614 + 0;
- 5 614 ÷ 2 = 2 807 + 0;
- 2 807 ÷ 2 = 1 403 + 1;
- 1 403 ÷ 2 = 701 + 1;
- 701 ÷ 2 = 350 + 1;
- 350 ÷ 2 = 175 + 0;
- 175 ÷ 2 = 87 + 1;
- 87 ÷ 2 = 43 + 1;
- 43 ÷ 2 = 21 + 1;
- 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.
12 345 678 901 234 929(10) Base 10 decimal system number converted and written as a base 2 unsigned binary equivalent:
12 345 678 901 234 929 (base 10) = 10 1011 1101 1100 0101 0100 0101 1101 0110 1011 0100 1100 1111 0001 (base 2)
Spaces were used to group digits: for binary, by 4, for decimal, by 3.