You are on page 1of 1

Convert each into hex now. (0-9 = 0-9.

A = 10, B = 11, C = 12, D = 13, E = 14,


F = 15 in case you find it easier to think decimal still)
------
Take it 4 bits at a time to go from hex to binary.
D = 1101
1= 0001
Put them together, we get 1101 0001 (8 bits = 1 byte)
Treat the 8 bits as a complete byte, and add up the 1 values, to convert it to d
ecimal:
1101 0001 - 128+64+16+1 = 209
--------
Now let's do your example:
D116 = 13*16^1 + 1*16^0 = 13*16 + 1 = 208 + 1 = 209

You might also like