What are the required steps to convert base 10 decimal system
number 125 126 255 255 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;
- 125 126 255 255 ÷ 2 = 62 563 127 627 + 1;
- 62 563 127 627 ÷ 2 = 31 281 563 813 + 1;
- 31 281 563 813 ÷ 2 = 15 640 781 906 + 1;
- 15 640 781 906 ÷ 2 = 7 820 390 953 + 0;
- 7 820 390 953 ÷ 2 = 3 910 195 476 + 1;
- 3 910 195 476 ÷ 2 = 1 955 097 738 + 0;
- 1 955 097 738 ÷ 2 = 977 548 869 + 0;
- 977 548 869 ÷ 2 = 488 774 434 + 1;
- 488 774 434 ÷ 2 = 244 387 217 + 0;
- 244 387 217 ÷ 2 = 122 193 608 + 1;
- 122 193 608 ÷ 2 = 61 096 804 + 0;
- 61 096 804 ÷ 2 = 30 548 402 + 0;
- 30 548 402 ÷ 2 = 15 274 201 + 0;
- 15 274 201 ÷ 2 = 7 637 100 + 1;
- 7 637 100 ÷ 2 = 3 818 550 + 0;
- 3 818 550 ÷ 2 = 1 909 275 + 0;
- 1 909 275 ÷ 2 = 954 637 + 1;
- 954 637 ÷ 2 = 477 318 + 1;
- 477 318 ÷ 2 = 238 659 + 0;
- 238 659 ÷ 2 = 119 329 + 1;
- 119 329 ÷ 2 = 59 664 + 1;
- 59 664 ÷ 2 = 29 832 + 0;
- 29 832 ÷ 2 = 14 916 + 0;
- 14 916 ÷ 2 = 7 458 + 0;
- 7 458 ÷ 2 = 3 729 + 0;
- 3 729 ÷ 2 = 1 864 + 1;
- 1 864 ÷ 2 = 932 + 0;
- 932 ÷ 2 = 466 + 0;
- 466 ÷ 2 = 233 + 0;
- 233 ÷ 2 = 116 + 1;
- 116 ÷ 2 = 58 + 0;
- 58 ÷ 2 = 29 + 0;
- 29 ÷ 2 = 14 + 1;
- 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.
125 126 255 255(10) Base 10 decimal system number converted and written as a base 2 unsigned binary equivalent:
125 126 255 255 (base 10) = 1 1101 0010 0010 0001 1011 0010 0010 1001 0111 (base 2)
Spaces were used to group digits: for binary, by 4, for decimal, by 3.