Base 16
- Also known as Hexidecimal or Hex
- Uses a range between 0 and F
- When converting from Base 16, change the 10 to 16
- Ex:
- Value x 10^exponent (WRONG)
- Value x 16^exponent (CORRECT)
- 0x stands for Hexadecimal
- 0x A = 10
- 0x B = 11
- 0x C = 12
- 0x D = 13
- 0x E = 14
- 0x F = 15
- Ex: 0xA5
| A |
5 |
| A x 16^1 |
5 x 16^0 |
| 160 |
5 |
Converting to Binary
- Each Hexadecimal is 4 bits
- Ex:
- Conversions
- 0xA = 1010
- 0xB = 1011
- 0xC = 1100
- 0xD = 1101
- 0xE = 1110
- 0xF = 1111