What are the required steps to convert base 10 decimal system
number 4 789 458 866 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;
- 4 789 458 866 ÷ 2 = 2 394 729 433 + 0;
- 2 394 729 433 ÷ 2 = 1 197 364 716 + 1;
- 1 197 364 716 ÷ 2 = 598 682 358 + 0;
- 598 682 358 ÷ 2 = 299 341 179 + 0;
- 299 341 179 ÷ 2 = 149 670 589 + 1;
- 149 670 589 ÷ 2 = 74 835 294 + 1;
- 74 835 294 ÷ 2 = 37 417 647 + 0;
- 37 417 647 ÷ 2 = 18 708 823 + 1;
- 18 708 823 ÷ 2 = 9 354 411 + 1;
- 9 354 411 ÷ 2 = 4 677 205 + 1;
- 4 677 205 ÷ 2 = 2 338 602 + 1;
- 2 338 602 ÷ 2 = 1 169 301 + 0;
- 1 169 301 ÷ 2 = 584 650 + 1;
- 584 650 ÷ 2 = 292 325 + 0;
- 292 325 ÷ 2 = 146 162 + 1;
- 146 162 ÷ 2 = 73 081 + 0;
- 73 081 ÷ 2 = 36 540 + 1;
- 36 540 ÷ 2 = 18 270 + 0;
- 18 270 ÷ 2 = 9 135 + 0;
- 9 135 ÷ 2 = 4 567 + 1;
- 4 567 ÷ 2 = 2 283 + 1;
- 2 283 ÷ 2 = 1 141 + 1;
- 1 141 ÷ 2 = 570 + 1;
- 570 ÷ 2 = 285 + 0;
- 285 ÷ 2 = 142 + 1;
- 142 ÷ 2 = 71 + 0;
- 71 ÷ 2 = 35 + 1;
- 35 ÷ 2 = 17 + 1;
- 17 ÷ 2 = 8 + 1;
- 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.
4 789 458 866(10) Base 10 decimal system number converted and written as a base 2 unsigned binary equivalent:
4 789 458 866 (base 10) = 1 0001 1101 0111 1001 0101 0111 1011 0010 (base 2)
Spaces were used to group digits: for binary, by 4, for decimal, by 3.