What are the required steps to convert base 10 decimal system
number 1 140 064 124 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 140 064 124 ÷ 2 = 570 032 062 + 0;
- 570 032 062 ÷ 2 = 285 016 031 + 0;
- 285 016 031 ÷ 2 = 142 508 015 + 1;
- 142 508 015 ÷ 2 = 71 254 007 + 1;
- 71 254 007 ÷ 2 = 35 627 003 + 1;
- 35 627 003 ÷ 2 = 17 813 501 + 1;
- 17 813 501 ÷ 2 = 8 906 750 + 1;
- 8 906 750 ÷ 2 = 4 453 375 + 0;
- 4 453 375 ÷ 2 = 2 226 687 + 1;
- 2 226 687 ÷ 2 = 1 113 343 + 1;
- 1 113 343 ÷ 2 = 556 671 + 1;
- 556 671 ÷ 2 = 278 335 + 1;
- 278 335 ÷ 2 = 139 167 + 1;
- 139 167 ÷ 2 = 69 583 + 1;
- 69 583 ÷ 2 = 34 791 + 1;
- 34 791 ÷ 2 = 17 395 + 1;
- 17 395 ÷ 2 = 8 697 + 1;
- 8 697 ÷ 2 = 4 348 + 1;
- 4 348 ÷ 2 = 2 174 + 0;
- 2 174 ÷ 2 = 1 087 + 0;
- 1 087 ÷ 2 = 543 + 1;
- 543 ÷ 2 = 271 + 1;
- 271 ÷ 2 = 135 + 1;
- 135 ÷ 2 = 67 + 1;
- 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.
1 140 064 124(10) Base 10 decimal system number converted and written as a base 2 unsigned binary equivalent:
1 140 064 124 (base 10) = 100 0011 1111 0011 1111 1111 0111 1100 (base 2)
Spaces were used to group digits: for binary, by 4, for decimal, by 3.