Hexadecimal is a base-16 number system that uses 16 symbols - the numbers 0-9 and the letters A-F, where A represents 10, B represents 11, and so on, up to F which stands for 15. Each digit represents a power of 16.
For example, in the weight decimal representation:
-
Hexadecimal 98 means: 9 * 16^1 + 8 * 16^0, which equals 152 in decimal.
-
Hexadecimal A2 means: A(10) * 16^1 + 2 * 16^0, which is equal to 162 in decimal.
The beauty of hexadecimal is its efficiency in representing large numbers, especially useful in computing for addressing memory. It's a way of expressing memory addresses that is compact yet still fairly readable.
When converting from hexadecimal to decimal, you multiply each digit by a power of 16, with the rightmost digit being 16^0. It makes binary numbers more manageable by summarizing every four binary bits with a single hex digit.