.: Home : Fragments of theory : Number system conversions :.
Conversion between number systems:
For conversion between hexadecimal and decimal, you should probably just use a calculator or get a little program
which does this. (Note: The Windows 98 calculator does it.) Not that it's complicated but there's not point in
wasting time trying to figure out what FAC stands for!
For the really interested folks here's a little trick to convert from
hexadecimal to decimal.
In the decimal system, 125 can be represented as 1 x 10^2 + 2 x 10^1 + 5 x
10^0. The 10 in this refers to the amount of characters in the digit
alphabet. The exponential is just the place of the digit minus 1!
So for hexadecimal, FAC you could do the following.
FAC = F x 16^2 + A x 16^1
+ C x 16^0.
Once you have this you can substitute the decimal values of F,
A and C and after looking at it for a minute or two you should come up with the
answer. I'm not as smart as you so I'll let you do the mental math
while I go use my calculator. (and turns out the answer is 4012).