What are the required steps to convert base 10 decimal system
number 240 345 432 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;
- 240 345 432 ÷ 2 = 120 172 716 + 0;
- 120 172 716 ÷ 2 = 60 086 358 + 0;
- 60 086 358 ÷ 2 = 30 043 179 + 0;
- 30 043 179 ÷ 2 = 15 021 589 + 1;
- 15 021 589 ÷ 2 = 7 510 794 + 1;
- 7 510 794 ÷ 2 = 3 755 397 + 0;
- 3 755 397 ÷ 2 = 1 877 698 + 1;
- 1 877 698 ÷ 2 = 938 849 + 0;
- 938 849 ÷ 2 = 469 424 + 1;
- 469 424 ÷ 2 = 234 712 + 0;
- 234 712 ÷ 2 = 117 356 + 0;
- 117 356 ÷ 2 = 58 678 + 0;
- 58 678 ÷ 2 = 29 339 + 0;
- 29 339 ÷ 2 = 14 669 + 1;
- 14 669 ÷ 2 = 7 334 + 1;
- 7 334 ÷ 2 = 3 667 + 0;
- 3 667 ÷ 2 = 1 833 + 1;
- 1 833 ÷ 2 = 916 + 1;
- 916 ÷ 2 = 458 + 0;
- 458 ÷ 2 = 229 + 0;
- 229 ÷ 2 = 114 + 1;
- 114 ÷ 2 = 57 + 0;
- 57 ÷ 2 = 28 + 1;
- 28 ÷ 2 = 14 + 0;
- 14 ÷ 2 = 7 + 0;
- 7 ÷ 2 = 3 + 1;
- 3 ÷ 2 = 1 + 1;
- 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.
240 345 432(10) Base 10 decimal system number converted and written as a base 2 unsigned binary equivalent:
240 345 432 (base 10) = 1110 0101 0011 0110 0001 0101 1000 (base 2)
Spaces were used to group digits: for binary, by 4, for decimal, by 3.