Figure 1-21. Conversion exercise: binary 110.
(f) You were right if you wrote: 22 + 21 = 4 + 2 = 6. Remember that
we don't add in the value of places occupied by zero. (Correct your entries, if
necessary, then proceed.)
(5) Decimal to binary conversion. Essentially, to convert decimal numbers
to their binary equivalent you subtract place values. Let's convert decimal 28 to see
exactly how this is done. First, subtract the largest binary place value (power of two)
that is less than the decimal number. In this case, 24 or 16 is the largest binary place
value less than 28. Subtracting 16 from 28 leaves a remainder of 12. Keep subtracting
the next largest power of 2 from each succeeding remainder.
Figure 1-22. To convert from decimal to binary, subtract the largest power of 2,
and keep subtracting the next largest power from each succeeding