Unsigned: Integer -> Binary: 1 125 710 907 Convert the Positive Integer (Whole Number) From Base Ten (10) To Base Two (2), Conversion and Writing of Decimal System Number as Unsigned Binary Code
Unsigned (positive) integer number 1 125 710 907(10)
converted and written as an unsigned binary (base 2) = ?
1. Divide the number repeatedly by 2:
Keep track of each remainder.
We stop when we get a quotient that is equal to zero.
- division = quotient + remainder;
- 1 125 710 907 ÷ 2 = 562 855 453 + 1;
- 562 855 453 ÷ 2 = 281 427 726 + 1;
- 281 427 726 ÷ 2 = 140 713 863 + 0;
- 140 713 863 ÷ 2 = 70 356 931 + 1;
- 70 356 931 ÷ 2 = 35 178 465 + 1;
- 35 178 465 ÷ 2 = 17 589 232 + 1;
- 17 589 232 ÷ 2 = 8 794 616 + 0;
- 8 794 616 ÷ 2 = 4 397 308 + 0;
- 4 397 308 ÷ 2 = 2 198 654 + 0;
- 2 198 654 ÷ 2 = 1 099 327 + 0;
- 1 099 327 ÷ 2 = 549 663 + 1;
- 549 663 ÷ 2 = 274 831 + 1;
- 274 831 ÷ 2 = 137 415 + 1;
- 137 415 ÷ 2 = 68 707 + 1;
- 68 707 ÷ 2 = 34 353 + 1;
- 34 353 ÷ 2 = 17 176 + 1;
- 17 176 ÷ 2 = 8 588 + 0;
- 8 588 ÷ 2 = 4 294 + 0;
- 4 294 ÷ 2 = 2 147 + 0;
- 2 147 ÷ 2 = 1 073 + 1;
- 1 073 ÷ 2 = 536 + 1;
- 536 ÷ 2 = 268 + 0;
- 268 ÷ 2 = 134 + 0;
- 134 ÷ 2 = 67 + 0;
- 67 ÷ 2 = 33 + 1;
- 33 ÷ 2 = 16 + 1;
- 16 ÷ 2 = 8 + 0;
- 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.
Number 1 125 710 907(10), a positive integer number (with no sign),
converted from decimal system (from base 10)
and written as an unsigned binary (in base 2):
1 125 710 907(10) = 100 0011 0001 1000 1111 1100 0011 1011(2)
Spaces were used to group digits: for binary, by 4, for decimal, by 3.
Convert positive integer numbers (unsigned) from decimal system (base ten) to binary (base two)
How to convert a base 10 positive integer number to base 2:
1) Divide the number repeatedly by 2, keeping track of each remainder, until getting a quotient that is 0;
2) Construct the base 2 representation by taking all the previously calculated remainders starting from the last remainder up to the first one, in that order.