The 16 values 0 - 15 are each represented by 1 hex "digit".
4 binary digits are needed to represent the same 16 values.
Hex values are preceded by 0x as in C.
| Hex | Decimal | Binary |
|---|---|---|
| 0x0 | 0 | 0000 |
| 0x1 | 1 | 0001 |
| 0x2 | 2 | 0010 |
| 0x3 | 3 | 0011 |
| 0x4 | 4 | 0100 |
| 0x5 | 5 | 0101 |
| 0x6 | 6 | 0110 |
| 0x7 | 7 | 0111 |
| 0x8 | 8 | 1000 |
| 0x9 | 9 | 1001 |
| 0xA | 10 | 1010 |
| 0xB | 11 | 1011 |
| 0xC | 12 | 1100 |
| 0xD | 13 | 1101 |
| 0xE | 14 | 1110 |
| 0xF | 15 | 1111 |