What are the required steps to convert base 10 decimal system
number 1 111 111 110 001 138 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 111 111 110 001 138 ÷ 2 = 555 555 555 000 569 + 0;
- 555 555 555 000 569 ÷ 2 = 277 777 777 500 284 + 1;
- 277 777 777 500 284 ÷ 2 = 138 888 888 750 142 + 0;
- 138 888 888 750 142 ÷ 2 = 69 444 444 375 071 + 0;
- 69 444 444 375 071 ÷ 2 = 34 722 222 187 535 + 1;
- 34 722 222 187 535 ÷ 2 = 17 361 111 093 767 + 1;
- 17 361 111 093 767 ÷ 2 = 8 680 555 546 883 + 1;
- 8 680 555 546 883 ÷ 2 = 4 340 277 773 441 + 1;
- 4 340 277 773 441 ÷ 2 = 2 170 138 886 720 + 1;
- 2 170 138 886 720 ÷ 2 = 1 085 069 443 360 + 0;
- 1 085 069 443 360 ÷ 2 = 542 534 721 680 + 0;
- 542 534 721 680 ÷ 2 = 271 267 360 840 + 0;
- 271 267 360 840 ÷ 2 = 135 633 680 420 + 0;
- 135 633 680 420 ÷ 2 = 67 816 840 210 + 0;
- 67 816 840 210 ÷ 2 = 33 908 420 105 + 0;
- 33 908 420 105 ÷ 2 = 16 954 210 052 + 1;
- 16 954 210 052 ÷ 2 = 8 477 105 026 + 0;
- 8 477 105 026 ÷ 2 = 4 238 552 513 + 0;
- 4 238 552 513 ÷ 2 = 2 119 276 256 + 1;
- 2 119 276 256 ÷ 2 = 1 059 638 128 + 0;
- 1 059 638 128 ÷ 2 = 529 819 064 + 0;
- 529 819 064 ÷ 2 = 264 909 532 + 0;
- 264 909 532 ÷ 2 = 132 454 766 + 0;
- 132 454 766 ÷ 2 = 66 227 383 + 0;
- 66 227 383 ÷ 2 = 33 113 691 + 1;
- 33 113 691 ÷ 2 = 16 556 845 + 1;
- 16 556 845 ÷ 2 = 8 278 422 + 1;
- 8 278 422 ÷ 2 = 4 139 211 + 0;
- 4 139 211 ÷ 2 = 2 069 605 + 1;
- 2 069 605 ÷ 2 = 1 034 802 + 1;
- 1 034 802 ÷ 2 = 517 401 + 0;
- 517 401 ÷ 2 = 258 700 + 1;
- 258 700 ÷ 2 = 129 350 + 0;
- 129 350 ÷ 2 = 64 675 + 0;
- 64 675 ÷ 2 = 32 337 + 1;
- 32 337 ÷ 2 = 16 168 + 1;
- 16 168 ÷ 2 = 8 084 + 0;
- 8 084 ÷ 2 = 4 042 + 0;
- 4 042 ÷ 2 = 2 021 + 0;
- 2 021 ÷ 2 = 1 010 + 1;
- 1 010 ÷ 2 = 505 + 0;
- 505 ÷ 2 = 252 + 1;
- 252 ÷ 2 = 126 + 0;
- 126 ÷ 2 = 63 + 0;
- 63 ÷ 2 = 31 + 1;
- 31 ÷ 2 = 15 + 1;
- 15 ÷ 2 = 7 + 1;
- 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 111 111 110 001 138(10) Base 10 decimal system number converted and written as a base 2 unsigned binary equivalent:
1 111 111 110 001 138 (base 10) = 11 1111 0010 1000 1100 1011 0111 0000 0100 1000 0001 1111 0010 (base 2)
Spaces were used to group digits: for binary, by 4, for decimal, by 3.