What are the required steps to convert base 10 decimal system
number 1 234 235 423 224 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 234 235 423 224 ÷ 2 = 617 117 711 612 + 0;
- 617 117 711 612 ÷ 2 = 308 558 855 806 + 0;
- 308 558 855 806 ÷ 2 = 154 279 427 903 + 0;
- 154 279 427 903 ÷ 2 = 77 139 713 951 + 1;
- 77 139 713 951 ÷ 2 = 38 569 856 975 + 1;
- 38 569 856 975 ÷ 2 = 19 284 928 487 + 1;
- 19 284 928 487 ÷ 2 = 9 642 464 243 + 1;
- 9 642 464 243 ÷ 2 = 4 821 232 121 + 1;
- 4 821 232 121 ÷ 2 = 2 410 616 060 + 1;
- 2 410 616 060 ÷ 2 = 1 205 308 030 + 0;
- 1 205 308 030 ÷ 2 = 602 654 015 + 0;
- 602 654 015 ÷ 2 = 301 327 007 + 1;
- 301 327 007 ÷ 2 = 150 663 503 + 1;
- 150 663 503 ÷ 2 = 75 331 751 + 1;
- 75 331 751 ÷ 2 = 37 665 875 + 1;
- 37 665 875 ÷ 2 = 18 832 937 + 1;
- 18 832 937 ÷ 2 = 9 416 468 + 1;
- 9 416 468 ÷ 2 = 4 708 234 + 0;
- 4 708 234 ÷ 2 = 2 354 117 + 0;
- 2 354 117 ÷ 2 = 1 177 058 + 1;
- 1 177 058 ÷ 2 = 588 529 + 0;
- 588 529 ÷ 2 = 294 264 + 1;
- 294 264 ÷ 2 = 147 132 + 0;
- 147 132 ÷ 2 = 73 566 + 0;
- 73 566 ÷ 2 = 36 783 + 0;
- 36 783 ÷ 2 = 18 391 + 1;
- 18 391 ÷ 2 = 9 195 + 1;
- 9 195 ÷ 2 = 4 597 + 1;
- 4 597 ÷ 2 = 2 298 + 1;
- 2 298 ÷ 2 = 1 149 + 0;
- 1 149 ÷ 2 = 574 + 1;
- 574 ÷ 2 = 287 + 0;
- 287 ÷ 2 = 143 + 1;
- 143 ÷ 2 = 71 + 1;
- 71 ÷ 2 = 35 + 1;
- 35 ÷ 2 = 17 + 1;
- 17 ÷ 2 = 8 + 1;
- 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 234 235 423 224(10) Base 10 decimal system number converted and written as a base 2 unsigned binary equivalent:
1 234 235 423 224 (base 10) = 1 0001 1111 0101 1110 0010 1001 1111 1001 1111 1000 (base 2)
Spaces were used to group digits: for binary, by 4, for decimal, by 3.