What are the required steps to convert base 10 decimal system
number 1 101 110 111 256 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 101 110 111 256 ÷ 2 = 550 555 055 628 + 0;
- 550 555 055 628 ÷ 2 = 275 277 527 814 + 0;
- 275 277 527 814 ÷ 2 = 137 638 763 907 + 0;
- 137 638 763 907 ÷ 2 = 68 819 381 953 + 1;
- 68 819 381 953 ÷ 2 = 34 409 690 976 + 1;
- 34 409 690 976 ÷ 2 = 17 204 845 488 + 0;
- 17 204 845 488 ÷ 2 = 8 602 422 744 + 0;
- 8 602 422 744 ÷ 2 = 4 301 211 372 + 0;
- 4 301 211 372 ÷ 2 = 2 150 605 686 + 0;
- 2 150 605 686 ÷ 2 = 1 075 302 843 + 0;
- 1 075 302 843 ÷ 2 = 537 651 421 + 1;
- 537 651 421 ÷ 2 = 268 825 710 + 1;
- 268 825 710 ÷ 2 = 134 412 855 + 0;
- 134 412 855 ÷ 2 = 67 206 427 + 1;
- 67 206 427 ÷ 2 = 33 603 213 + 1;
- 33 603 213 ÷ 2 = 16 801 606 + 1;
- 16 801 606 ÷ 2 = 8 400 803 + 0;
- 8 400 803 ÷ 2 = 4 200 401 + 1;
- 4 200 401 ÷ 2 = 2 100 200 + 1;
- 2 100 200 ÷ 2 = 1 050 100 + 0;
- 1 050 100 ÷ 2 = 525 050 + 0;
- 525 050 ÷ 2 = 262 525 + 0;
- 262 525 ÷ 2 = 131 262 + 1;
- 131 262 ÷ 2 = 65 631 + 0;
- 65 631 ÷ 2 = 32 815 + 1;
- 32 815 ÷ 2 = 16 407 + 1;
- 16 407 ÷ 2 = 8 203 + 1;
- 8 203 ÷ 2 = 4 101 + 1;
- 4 101 ÷ 2 = 2 050 + 1;
- 2 050 ÷ 2 = 1 025 + 0;
- 1 025 ÷ 2 = 512 + 1;
- 512 ÷ 2 = 256 + 0;
- 256 ÷ 2 = 128 + 0;
- 128 ÷ 2 = 64 + 0;
- 64 ÷ 2 = 32 + 0;
- 32 ÷ 2 = 16 + 0;
- 16 ÷ 2 = 8 + 0;
- 8 ÷ 2 = 4 + 0;
- 4 ÷ 2 = 2 + 0;
- 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.
1 101 110 111 256(10) Base 10 decimal system number converted and written as a base 2 unsigned binary equivalent:
1 101 110 111 256 (base 10) = 1 0000 0000 0101 1111 0100 0110 1110 1100 0001 1000 (base 2)
Spaces were used to group digits: for binary, by 4, for decimal, by 3.