Understanding Hexadecimal Math and Base Systems
Hexadecimal is a Base 16 numbering system. Unlike our everyday Base 10 decimal system that uses ten symbols (0–9), hexadecimal uses sixteen symbols: 0–9 for values zero to nine, and the letters A–F for values ten to fifteen.
Positional Values in Base 16
To convert a hexadecimal number to decimal, multiply each character by its positional power of 16, starting with 16⁰ on the far right. For example, the hex value A5 converts to decimal like this:
Hexadecimal Conversions
Because 16 is a power of 2 (2⁴), conversions between hexadecimal and binary are incredibly simple. Each hex digit corresponds exactly to a 4-bit binary group (called a nibble):