What are the required steps to convert base 10 decimal system
number 4 303 295 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 303 295 ÷ 2 = 2 151 647 + 1;
- 2 151 647 ÷ 2 = 1 075 823 + 1;
- 1 075 823 ÷ 2 = 537 911 + 1;
- 537 911 ÷ 2 = 268 955 + 1;
- 268 955 ÷ 2 = 134 477 + 1;
- 134 477 ÷ 2 = 67 238 + 1;
- 67 238 ÷ 2 = 33 619 + 0;
- 33 619 ÷ 2 = 16 809 + 1;
- 16 809 ÷ 2 = 8 404 + 1;
- 8 404 ÷ 2 = 4 202 + 0;
- 4 202 ÷ 2 = 2 101 + 0;
- 2 101 ÷ 2 = 1 050 + 1;
- 1 050 ÷ 2 = 525 + 0;
- 525 ÷ 2 = 262 + 1;
- 262 ÷ 2 = 131 + 0;
- 131 ÷ 2 = 65 + 1;
- 65 ÷ 2 = 32 + 1;
- 32 ÷ 2 = 16 + 0;
- 16 ÷ 2 = 8 + 0;
- 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 303 295(10) Base 10 decimal system number converted and written as a base 2 unsigned binary equivalent:
4 303 295 (base 10) = 100 0001 1010 1001 1011 1111 (base 2)
Spaces were used to group digits: for binary, by 4, for decimal, by 3.