What are the required steps to convert base 10 decimal system
number 1 005 785 808 225 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;
- 1 005 785 808 225 ÷ 2 = 502 892 904 112 + 1;
- 502 892 904 112 ÷ 2 = 251 446 452 056 + 0;
- 251 446 452 056 ÷ 2 = 125 723 226 028 + 0;
- 125 723 226 028 ÷ 2 = 62 861 613 014 + 0;
- 62 861 613 014 ÷ 2 = 31 430 806 507 + 0;
- 31 430 806 507 ÷ 2 = 15 715 403 253 + 1;
- 15 715 403 253 ÷ 2 = 7 857 701 626 + 1;
- 7 857 701 626 ÷ 2 = 3 928 850 813 + 0;
- 3 928 850 813 ÷ 2 = 1 964 425 406 + 1;
- 1 964 425 406 ÷ 2 = 982 212 703 + 0;
- 982 212 703 ÷ 2 = 491 106 351 + 1;
- 491 106 351 ÷ 2 = 245 553 175 + 1;
- 245 553 175 ÷ 2 = 122 776 587 + 1;
- 122 776 587 ÷ 2 = 61 388 293 + 1;
- 61 388 293 ÷ 2 = 30 694 146 + 1;
- 30 694 146 ÷ 2 = 15 347 073 + 0;
- 15 347 073 ÷ 2 = 7 673 536 + 1;
- 7 673 536 ÷ 2 = 3 836 768 + 0;
- 3 836 768 ÷ 2 = 1 918 384 + 0;
- 1 918 384 ÷ 2 = 959 192 + 0;
- 959 192 ÷ 2 = 479 596 + 0;
- 479 596 ÷ 2 = 239 798 + 0;
- 239 798 ÷ 2 = 119 899 + 0;
- 119 899 ÷ 2 = 59 949 + 1;
- 59 949 ÷ 2 = 29 974 + 1;
- 29 974 ÷ 2 = 14 987 + 0;
- 14 987 ÷ 2 = 7 493 + 1;
- 7 493 ÷ 2 = 3 746 + 1;
- 3 746 ÷ 2 = 1 873 + 0;
- 1 873 ÷ 2 = 936 + 1;
- 936 ÷ 2 = 468 + 0;
- 468 ÷ 2 = 234 + 0;
- 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.
1 005 785 808 225(10) Base 10 decimal system number converted and written as a base 2 unsigned binary equivalent:
1 005 785 808 225 (base 10) = 1110 1010 0010 1101 1000 0001 0111 1101 0110 0001 (base 2)
Spaces were used to group digits: for binary, by 4, for decimal, by 3.