What are the required steps to convert base 10 decimal system
number 1 874 515 834 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 874 515 834 ÷ 2 = 937 257 917 + 0;
- 937 257 917 ÷ 2 = 468 628 958 + 1;
- 468 628 958 ÷ 2 = 234 314 479 + 0;
- 234 314 479 ÷ 2 = 117 157 239 + 1;
- 117 157 239 ÷ 2 = 58 578 619 + 1;
- 58 578 619 ÷ 2 = 29 289 309 + 1;
- 29 289 309 ÷ 2 = 14 644 654 + 1;
- 14 644 654 ÷ 2 = 7 322 327 + 0;
- 7 322 327 ÷ 2 = 3 661 163 + 1;
- 3 661 163 ÷ 2 = 1 830 581 + 1;
- 1 830 581 ÷ 2 = 915 290 + 1;
- 915 290 ÷ 2 = 457 645 + 0;
- 457 645 ÷ 2 = 228 822 + 1;
- 228 822 ÷ 2 = 114 411 + 0;
- 114 411 ÷ 2 = 57 205 + 1;
- 57 205 ÷ 2 = 28 602 + 1;
- 28 602 ÷ 2 = 14 301 + 0;
- 14 301 ÷ 2 = 7 150 + 1;
- 7 150 ÷ 2 = 3 575 + 0;
- 3 575 ÷ 2 = 1 787 + 1;
- 1 787 ÷ 2 = 893 + 1;
- 893 ÷ 2 = 446 + 1;
- 446 ÷ 2 = 223 + 0;
- 223 ÷ 2 = 111 + 1;
- 111 ÷ 2 = 55 + 1;
- 55 ÷ 2 = 27 + 1;
- 27 ÷ 2 = 13 + 1;
- 13 ÷ 2 = 6 + 1;
- 6 ÷ 2 = 3 + 0;
- 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.
1 874 515 834(10) Base 10 decimal system number converted and written as a base 2 unsigned binary equivalent:
1 874 515 834 (base 10) = 110 1111 1011 1010 1101 0111 0111 1010 (base 2)
Spaces were used to group digits: for binary, by 4, for decimal, by 3.