What are the required steps to convert base 10 decimal system
number 127 310 011 110 778 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;
- 127 310 011 110 778 ÷ 2 = 63 655 005 555 389 + 0;
- 63 655 005 555 389 ÷ 2 = 31 827 502 777 694 + 1;
- 31 827 502 777 694 ÷ 2 = 15 913 751 388 847 + 0;
- 15 913 751 388 847 ÷ 2 = 7 956 875 694 423 + 1;
- 7 956 875 694 423 ÷ 2 = 3 978 437 847 211 + 1;
- 3 978 437 847 211 ÷ 2 = 1 989 218 923 605 + 1;
- 1 989 218 923 605 ÷ 2 = 994 609 461 802 + 1;
- 994 609 461 802 ÷ 2 = 497 304 730 901 + 0;
- 497 304 730 901 ÷ 2 = 248 652 365 450 + 1;
- 248 652 365 450 ÷ 2 = 124 326 182 725 + 0;
- 124 326 182 725 ÷ 2 = 62 163 091 362 + 1;
- 62 163 091 362 ÷ 2 = 31 081 545 681 + 0;
- 31 081 545 681 ÷ 2 = 15 540 772 840 + 1;
- 15 540 772 840 ÷ 2 = 7 770 386 420 + 0;
- 7 770 386 420 ÷ 2 = 3 885 193 210 + 0;
- 3 885 193 210 ÷ 2 = 1 942 596 605 + 0;
- 1 942 596 605 ÷ 2 = 971 298 302 + 1;
- 971 298 302 ÷ 2 = 485 649 151 + 0;
- 485 649 151 ÷ 2 = 242 824 575 + 1;
- 242 824 575 ÷ 2 = 121 412 287 + 1;
- 121 412 287 ÷ 2 = 60 706 143 + 1;
- 60 706 143 ÷ 2 = 30 353 071 + 1;
- 30 353 071 ÷ 2 = 15 176 535 + 1;
- 15 176 535 ÷ 2 = 7 588 267 + 1;
- 7 588 267 ÷ 2 = 3 794 133 + 1;
- 3 794 133 ÷ 2 = 1 897 066 + 1;
- 1 897 066 ÷ 2 = 948 533 + 0;
- 948 533 ÷ 2 = 474 266 + 1;
- 474 266 ÷ 2 = 237 133 + 0;
- 237 133 ÷ 2 = 118 566 + 1;
- 118 566 ÷ 2 = 59 283 + 0;
- 59 283 ÷ 2 = 29 641 + 1;
- 29 641 ÷ 2 = 14 820 + 1;
- 14 820 ÷ 2 = 7 410 + 0;
- 7 410 ÷ 2 = 3 705 + 0;
- 3 705 ÷ 2 = 1 852 + 1;
- 1 852 ÷ 2 = 926 + 0;
- 926 ÷ 2 = 463 + 0;
- 463 ÷ 2 = 231 + 1;
- 231 ÷ 2 = 115 + 1;
- 115 ÷ 2 = 57 + 1;
- 57 ÷ 2 = 28 + 1;
- 28 ÷ 2 = 14 + 0;
- 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.
127 310 011 110 778(10) Base 10 decimal system number converted and written as a base 2 unsigned binary equivalent:
127 310 011 110 778 (base 10) = 111 0011 1100 1001 1010 1011 1111 1101 0001 0101 0111 1010 (base 2)
Spaces were used to group digits: for binary, by 4, for decimal, by 3.