Hexadecimal
Hexadecimal is base 16 compared to binary's base 2. Hex is handy due to it perfectly mapping to 4 binary bits. 2^4 = 16 -> base 16.
Reference Table
| Binary | Hex | Decimal |
|---|---|---|
| 0000 | 0 | 0 |
| 0001 | 1 | 1 |
| 0010 | 2 | 2 |
| 0011 | 3 | 3 |
| 0100 | 4 | 4 |
| 0101 | 5 | 5 |
| 0110 | 6 | 6 |
| 0111 | 7 | 7 |
| 1000 | 8 | 8 |
| 1001 | 9 | 9 |
| 1010 | A | 10 |
| 1011 | B | 11 |
| 1100 | C | 12 |
| 1101 | D | 13 |
| 1110 | E | 14 |
| 1111 | F | 15 |
Example: 265,847,564
| Decimal | 265,847,564 | |||
|---|---|---|---|---|
| Binary | 0000 1111 | 1101 1000 | 1000 0011 | 0000 1100 |
| Hex | 0x0F | 0xD8 | 0x83 | 0x0C |
Packets
Binary
[0000 1111] [1101 1000] [1000 0011] [0000 1100]
Hex
[0x0F] [0xD8] [0x83] [0x0C]