What are the required steps to convert base 10 decimal system
number 246 342 452 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;
- 246 342 452 ÷ 2 = 123 171 226 + 0;
- 123 171 226 ÷ 2 = 61 585 613 + 0;
- 61 585 613 ÷ 2 = 30 792 806 + 1;
- 30 792 806 ÷ 2 = 15 396 403 + 0;
- 15 396 403 ÷ 2 = 7 698 201 + 1;
- 7 698 201 ÷ 2 = 3 849 100 + 1;
- 3 849 100 ÷ 2 = 1 924 550 + 0;
- 1 924 550 ÷ 2 = 962 275 + 0;
- 962 275 ÷ 2 = 481 137 + 1;
- 481 137 ÷ 2 = 240 568 + 1;
- 240 568 ÷ 2 = 120 284 + 0;
- 120 284 ÷ 2 = 60 142 + 0;
- 60 142 ÷ 2 = 30 071 + 0;
- 30 071 ÷ 2 = 15 035 + 1;
- 15 035 ÷ 2 = 7 517 + 1;
- 7 517 ÷ 2 = 3 758 + 1;
- 3 758 ÷ 2 = 1 879 + 0;
- 1 879 ÷ 2 = 939 + 1;
- 939 ÷ 2 = 469 + 1;
- 469 ÷ 2 = 234 + 1;
- 234 ÷ 2 = 117 + 0;
- 117 ÷ 2 = 58 + 1;
- 58 ÷ 2 = 29 + 0;
- 29 ÷ 2 = 14 + 1;
- 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.
246 342 452(10) Base 10 decimal system number converted and written as a base 2 unsigned binary equivalent:
246 342 452 (base 10) = 1110 1010 1110 1110 0011 0011 0100 (base 2)
Spaces were used to group digits: for binary, by 4, for decimal, by 3.