What are the required steps to convert base 10 decimal system
number 5 470 379 089 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;
- 5 470 379 089 ÷ 2 = 2 735 189 544 + 1;
- 2 735 189 544 ÷ 2 = 1 367 594 772 + 0;
- 1 367 594 772 ÷ 2 = 683 797 386 + 0;
- 683 797 386 ÷ 2 = 341 898 693 + 0;
- 341 898 693 ÷ 2 = 170 949 346 + 1;
- 170 949 346 ÷ 2 = 85 474 673 + 0;
- 85 474 673 ÷ 2 = 42 737 336 + 1;
- 42 737 336 ÷ 2 = 21 368 668 + 0;
- 21 368 668 ÷ 2 = 10 684 334 + 0;
- 10 684 334 ÷ 2 = 5 342 167 + 0;
- 5 342 167 ÷ 2 = 2 671 083 + 1;
- 2 671 083 ÷ 2 = 1 335 541 + 1;
- 1 335 541 ÷ 2 = 667 770 + 1;
- 667 770 ÷ 2 = 333 885 + 0;
- 333 885 ÷ 2 = 166 942 + 1;
- 166 942 ÷ 2 = 83 471 + 0;
- 83 471 ÷ 2 = 41 735 + 1;
- 41 735 ÷ 2 = 20 867 + 1;
- 20 867 ÷ 2 = 10 433 + 1;
- 10 433 ÷ 2 = 5 216 + 1;
- 5 216 ÷ 2 = 2 608 + 0;
- 2 608 ÷ 2 = 1 304 + 0;
- 1 304 ÷ 2 = 652 + 0;
- 652 ÷ 2 = 326 + 0;
- 326 ÷ 2 = 163 + 0;
- 163 ÷ 2 = 81 + 1;
- 81 ÷ 2 = 40 + 1;
- 40 ÷ 2 = 20 + 0;
- 20 ÷ 2 = 10 + 0;
- 10 ÷ 2 = 5 + 0;
- 5 ÷ 2 = 2 + 1;
- 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.
5 470 379 089(10) Base 10 decimal system number converted and written as a base 2 unsigned binary equivalent:
5 470 379 089 (base 10) = 1 0100 0110 0000 1111 0101 1100 0101 0001 (base 2)
Spaces were used to group digits: for binary, by 4, for decimal, by 3.