What are the required steps to convert base 10 decimal system
number 777 778 258 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;
- 777 778 258 ÷ 2 = 388 889 129 + 0;
- 388 889 129 ÷ 2 = 194 444 564 + 1;
- 194 444 564 ÷ 2 = 97 222 282 + 0;
- 97 222 282 ÷ 2 = 48 611 141 + 0;
- 48 611 141 ÷ 2 = 24 305 570 + 1;
- 24 305 570 ÷ 2 = 12 152 785 + 0;
- 12 152 785 ÷ 2 = 6 076 392 + 1;
- 6 076 392 ÷ 2 = 3 038 196 + 0;
- 3 038 196 ÷ 2 = 1 519 098 + 0;
- 1 519 098 ÷ 2 = 759 549 + 0;
- 759 549 ÷ 2 = 379 774 + 1;
- 379 774 ÷ 2 = 189 887 + 0;
- 189 887 ÷ 2 = 94 943 + 1;
- 94 943 ÷ 2 = 47 471 + 1;
- 47 471 ÷ 2 = 23 735 + 1;
- 23 735 ÷ 2 = 11 867 + 1;
- 11 867 ÷ 2 = 5 933 + 1;
- 5 933 ÷ 2 = 2 966 + 1;
- 2 966 ÷ 2 = 1 483 + 0;
- 1 483 ÷ 2 = 741 + 1;
- 741 ÷ 2 = 370 + 1;
- 370 ÷ 2 = 185 + 0;
- 185 ÷ 2 = 92 + 1;
- 92 ÷ 2 = 46 + 0;
- 46 ÷ 2 = 23 + 0;
- 23 ÷ 2 = 11 + 1;
- 11 ÷ 2 = 5 + 1;
- 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.
777 778 258(10) Base 10 decimal system number converted and written as a base 2 unsigned binary equivalent:
777 778 258 (base 10) = 10 1110 0101 1011 1111 0100 0101 0010 (base 2)
Spaces were used to group digits: for binary, by 4, for decimal, by 3.