What are the required steps to convert base 10 decimal system
number 777 777 771 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 777 771 ÷ 2 = 388 888 885 + 1;
- 388 888 885 ÷ 2 = 194 444 442 + 1;
- 194 444 442 ÷ 2 = 97 222 221 + 0;
- 97 222 221 ÷ 2 = 48 611 110 + 1;
- 48 611 110 ÷ 2 = 24 305 555 + 0;
- 24 305 555 ÷ 2 = 12 152 777 + 1;
- 12 152 777 ÷ 2 = 6 076 388 + 1;
- 6 076 388 ÷ 2 = 3 038 194 + 0;
- 3 038 194 ÷ 2 = 1 519 097 + 0;
- 1 519 097 ÷ 2 = 759 548 + 1;
- 759 548 ÷ 2 = 379 774 + 0;
- 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 777 771(10) Base 10 decimal system number converted and written as a base 2 unsigned binary equivalent:
777 777 771 (base 10) = 10 1110 0101 1011 1111 0010 0110 1011 (base 2)
Spaces were used to group digits: for binary, by 4, for decimal, by 3.