In mathematics and computing, hexadecimal (also base 16, or hex) is a positional numeral system with a radix, or base, of 16. It uses sixteen distinct symbols, most often the symbols 0–9 to represent values zero to nine, and A, B, C, D, E, F (or alternatively a, b, c, d, e, f) to represent values ten to fifteen.
hexadecimal (base 16) | base 3 | hexadecimal (base 16) | base 3 |
---|---|---|---|
1 | = 1 | b | = 102 |
2 | = 2 | c | = 110 |
3 | = 10 | d | = 111 |
4 | = 11 | e | = 112 |
5 | = 12 | f | = 120 |
6 | = 20 | 10 | = 121 |
7 | = 21 | 11 | = 122 |
8 | = 22 | 12 | = 200 |
9 | = 100 | 13 | = 201 |
a | = 101 | 14 | = 202 |
base 3 | hexadecimal (base 16) | base 3 | hexadecimal (base 16) |
---|---|---|---|
1 | ≈ 1 | 102 | ≈ b |
2 | ≈ 2 | 110 | ≈ c |
10 | ≈ 3 | 111 | ≈ d |
11 | ≈ 4 | 112 | ≈ e |
12 | ≈ 5 | 120 | ≈ f |
20 | ≈ 6 | 121 | ≈ 10 |
21 | ≈ 7 | 122 | ≈ 11 |
22 | ≈ 8 | 200 | ≈ 12 |
100 | ≈ 9 | 201 | ≈ 13 |
101 | ≈ a | 202 | ≈ 14 |
hexadecimal (base 16) | base 3 |
---|---|
1 | = 1 |
2 | = 2 |
3 | = 10 |
4 | = 11 |
5 | = 12 |
6 | = 20 |
7 | = 21 |
8 | = 22 |
9 | = 100 |
a | = 101 |