How the calculation works
Hexadecimal uses base 16. A through F stand for 10 through 15.
One hex digit is four bits.
Worked example: FF and 2A
- FF = 15×16 + 15 = 255.
- 2A = 2×16 + 10 = 42.
- FF + 2A = 129, which is 81 in hex.
Hex values
| Hex | Decimal |
|---|---|
| 2A | 42 |
| FF | 255 |
| 100 | 256 |