Information Technology Reference
In-Depth Information
Memorize 1, 2, 4, 8, 16, 32, 64, and 128. Use this as you read a binary number from right to
left. This should be helpful in converting faster.
NOTE
Conversion Example 13: Convert 10110111 to Decimal
Sum: 128 + 0 + 32 + 16 + 0 + 4 + 2 + 1
Answer = 183
Conversion Example 14: Convert 11011 to Decimal
Sum: 16 + 8 + 0 + 2 + 1
Answer = 27
Conversion Example 15: Convert 11111111 to Decimal
Sum: 128 + 64 + 32 + 16 + 8 + 4 + 2 + 1
Answer = 255
Converting Decimal to Binary Numbers
This procedure is similar to converting from hex to decimal (by dividing), but now you divide
the decimal number by 2. You use each residual to build the binary number. Each residual bit is
prepended to the previous bit starting with the right. Repeat the procedure until you cannot
divide anymore. The only problem is that for large numbers you might have to divide many
times. An alternate method follows the next example.
 
Search WWH ::




Custom Search