What are the required steps to convert base 10 decimal system
number 180 323 172 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;
- 180 323 172 ÷ 2 = 90 161 586 + 0;
- 90 161 586 ÷ 2 = 45 080 793 + 0;
- 45 080 793 ÷ 2 = 22 540 396 + 1;
- 22 540 396 ÷ 2 = 11 270 198 + 0;
- 11 270 198 ÷ 2 = 5 635 099 + 0;
- 5 635 099 ÷ 2 = 2 817 549 + 1;
- 2 817 549 ÷ 2 = 1 408 774 + 1;
- 1 408 774 ÷ 2 = 704 387 + 0;
- 704 387 ÷ 2 = 352 193 + 1;
- 352 193 ÷ 2 = 176 096 + 1;
- 176 096 ÷ 2 = 88 048 + 0;
- 88 048 ÷ 2 = 44 024 + 0;
- 44 024 ÷ 2 = 22 012 + 0;
- 22 012 ÷ 2 = 11 006 + 0;
- 11 006 ÷ 2 = 5 503 + 0;
- 5 503 ÷ 2 = 2 751 + 1;
- 2 751 ÷ 2 = 1 375 + 1;
- 1 375 ÷ 2 = 687 + 1;
- 687 ÷ 2 = 343 + 1;
- 343 ÷ 2 = 171 + 1;
- 171 ÷ 2 = 85 + 1;
- 85 ÷ 2 = 42 + 1;
- 42 ÷ 2 = 21 + 0;
- 21 ÷ 2 = 10 + 1;
- 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.
180 323 172(10) Base 10 decimal system number converted and written as a base 2 unsigned binary equivalent:
180 323 172 (base 10) = 1010 1011 1111 1000 0011 0110 0100 (base 2)
Spaces were used to group digits: for binary, by 4, for decimal, by 3.