What are the required steps to convert base 10 decimal system
number 1 231 232 056 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 231 232 056 ÷ 2 = 615 616 028 + 0;
- 615 616 028 ÷ 2 = 307 808 014 + 0;
- 307 808 014 ÷ 2 = 153 904 007 + 0;
- 153 904 007 ÷ 2 = 76 952 003 + 1;
- 76 952 003 ÷ 2 = 38 476 001 + 1;
- 38 476 001 ÷ 2 = 19 238 000 + 1;
- 19 238 000 ÷ 2 = 9 619 000 + 0;
- 9 619 000 ÷ 2 = 4 809 500 + 0;
- 4 809 500 ÷ 2 = 2 404 750 + 0;
- 2 404 750 ÷ 2 = 1 202 375 + 0;
- 1 202 375 ÷ 2 = 601 187 + 1;
- 601 187 ÷ 2 = 300 593 + 1;
- 300 593 ÷ 2 = 150 296 + 1;
- 150 296 ÷ 2 = 75 148 + 0;
- 75 148 ÷ 2 = 37 574 + 0;
- 37 574 ÷ 2 = 18 787 + 0;
- 18 787 ÷ 2 = 9 393 + 1;
- 9 393 ÷ 2 = 4 696 + 1;
- 4 696 ÷ 2 = 2 348 + 0;
- 2 348 ÷ 2 = 1 174 + 0;
- 1 174 ÷ 2 = 587 + 0;
- 587 ÷ 2 = 293 + 1;
- 293 ÷ 2 = 146 + 1;
- 146 ÷ 2 = 73 + 0;
- 73 ÷ 2 = 36 + 1;
- 36 ÷ 2 = 18 + 0;
- 18 ÷ 2 = 9 + 0;
- 9 ÷ 2 = 4 + 1;
- 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.
1 231 232 056(10) Base 10 decimal system number converted and written as a base 2 unsigned binary equivalent:
1 231 232 056 (base 10) = 100 1001 0110 0011 0001 1100 0011 1000 (base 2)
Spaces were used to group digits: for binary, by 4, for decimal, by 3.