The hexadecimal system uses base 16 with digits 0-9 and letters A-F (representing 10-15). Each hex digit corresponds to 4 binary digits (nibble), making it efficient for representing large binary numbers.
| Hex | Binary | Decimal |
|---|---|---|
| 0 | 0 | 0 |
| 1 | 1 | 1 |
| 2 | 10 | 2 |
| 3 | 11 | 3 |
| 4 | 100 | 4 |
| 5 | 101 | 5 |
| 6 | 110 | 6 |
| 7 | 111 | 7 |
| 8 | 1000 | 8 |
| 9 | 1001 | 9 |
| A | 1010 | 10 |
| B | 1011 | 11 |
| C | 1100 | 12 |
| D | 1101 | 13 |
| E | 1110 | 14 |
| F | 1111 | 15 |
| 14 | 10100 | 20 |
| 3F | 111111 | 63 |
Hex addition, subtraction, multiplication, and division are similar to decimal operations but use base 16. Borrowing in subtraction involves 16decimal instead of 10.
Example: 8AB + B78 = 1423 (hex), or 2219 + 2936 = 5155 (decimal).