What are the required steps to convert base 10 decimal system
number 1 111 111 011 010 878 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 011 010 878 ÷ 2 = 555 555 505 505 439 + 0;
- 555 555 505 505 439 ÷ 2 = 277 777 752 752 719 + 1;
- 277 777 752 752 719 ÷ 2 = 138 888 876 376 359 + 1;
- 138 888 876 376 359 ÷ 2 = 69 444 438 188 179 + 1;
- 69 444 438 188 179 ÷ 2 = 34 722 219 094 089 + 1;
- 34 722 219 094 089 ÷ 2 = 17 361 109 547 044 + 1;
- 17 361 109 547 044 ÷ 2 = 8 680 554 773 522 + 0;
- 8 680 554 773 522 ÷ 2 = 4 340 277 386 761 + 0;
- 4 340 277 386 761 ÷ 2 = 2 170 138 693 380 + 1;
- 2 170 138 693 380 ÷ 2 = 1 085 069 346 690 + 0;
- 1 085 069 346 690 ÷ 2 = 542 534 673 345 + 0;
- 542 534 673 345 ÷ 2 = 271 267 336 672 + 1;
- 271 267 336 672 ÷ 2 = 135 633 668 336 + 0;
- 135 633 668 336 ÷ 2 = 67 816 834 168 + 0;
- 67 816 834 168 ÷ 2 = 33 908 417 084 + 0;
- 33 908 417 084 ÷ 2 = 16 954 208 542 + 0;
- 16 954 208 542 ÷ 2 = 8 477 104 271 + 0;
- 8 477 104 271 ÷ 2 = 4 238 552 135 + 1;
- 4 238 552 135 ÷ 2 = 2 119 276 067 + 1;
- 2 119 276 067 ÷ 2 = 1 059 638 033 + 1;
- 1 059 638 033 ÷ 2 = 529 819 016 + 1;
- 529 819 016 ÷ 2 = 264 909 508 + 0;
- 264 909 508 ÷ 2 = 132 454 754 + 0;
- 132 454 754 ÷ 2 = 66 227 377 + 0;
- 66 227 377 ÷ 2 = 33 113 688 + 1;
- 33 113 688 ÷ 2 = 16 556 844 + 0;
- 16 556 844 ÷ 2 = 8 278 422 + 0;
- 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 011 010 878(10) Base 10 decimal system number converted and written as a base 2 unsigned binary equivalent:
1 111 111 011 010 878 (base 10) = 11 1111 0010 1000 1100 1011 0001 0001 1110 0000 1001 0011 1110 (base 2)
Spaces were used to group digits: for binary, by 4, for decimal, by 3.