Convert a hexadecimal number to decimal.
Hexadecimal is base 16; each digit's place value is a power of sixteen.
decimal = Σ (digit × 16^position)