What are the required steps to convert base 10 decimal system
number 1 234 877 645 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 877 645 ÷ 2 = 617 438 822 + 1;
- 617 438 822 ÷ 2 = 308 719 411 + 0;
- 308 719 411 ÷ 2 = 154 359 705 + 1;
- 154 359 705 ÷ 2 = 77 179 852 + 1;
- 77 179 852 ÷ 2 = 38 589 926 + 0;
- 38 589 926 ÷ 2 = 19 294 963 + 0;
- 19 294 963 ÷ 2 = 9 647 481 + 1;
- 9 647 481 ÷ 2 = 4 823 740 + 1;
- 4 823 740 ÷ 2 = 2 411 870 + 0;
- 2 411 870 ÷ 2 = 1 205 935 + 0;
- 1 205 935 ÷ 2 = 602 967 + 1;
- 602 967 ÷ 2 = 301 483 + 1;
- 301 483 ÷ 2 = 150 741 + 1;
- 150 741 ÷ 2 = 75 370 + 1;
- 75 370 ÷ 2 = 37 685 + 0;
- 37 685 ÷ 2 = 18 842 + 1;
- 18 842 ÷ 2 = 9 421 + 0;
- 9 421 ÷ 2 = 4 710 + 1;
- 4 710 ÷ 2 = 2 355 + 0;
- 2 355 ÷ 2 = 1 177 + 1;
- 1 177 ÷ 2 = 588 + 1;
- 588 ÷ 2 = 294 + 0;
- 294 ÷ 2 = 147 + 0;
- 147 ÷ 2 = 73 + 1;
- 73 ÷ 2 = 36 + 1;
- 36 ÷ 2 = 18 + 0;
- 18 ÷ 2 = 9 + 0;
- 9 ÷ 2 = 4 + 1;
- 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 877 645(10) Base 10 decimal system number converted and written as a base 2 unsigned binary equivalent:
1 234 877 645 (base 10) = 100 1001 1001 1010 1011 1100 1100 1101 (base 2)
Spaces were used to group digits: for binary, by 4, for decimal, by 3.