Quaternary is the base-4 numeral system. It uses the digits 0, 1, 2 and 3 to represent any real number.
quaternary (base 4) | base 16 | quaternary (base 4) | base 16 |
---|---|---|---|
1 | = 1 | 23 | = b |
2 | = 2 | 30 | = c |
3 | = 3 | 31 | = d |
10 | = 4 | 32 | = e |
11 | = 5 | 33 | = f |
12 | = 6 | 100 | = 10 |
13 | = 7 | 101 | = 11 |
20 | = 8 | 102 | = 12 |
21 | = 9 | 103 | = 13 |
22 | = a | 110 | = 14 |
base 16 | quaternary (base 4) | base 16 | quaternary (base 4) |
---|---|---|---|
1 | ≈ 1 | b | ≈ 23 |
2 | ≈ 2 | c | ≈ 30 |
3 | ≈ 3 | d | ≈ 31 |
4 | ≈ 10 | e | ≈ 32 |
5 | ≈ 11 | f | ≈ 33 |
6 | ≈ 12 | 10 | ≈ 100 |
7 | ≈ 13 | 11 | ≈ 101 |
8 | ≈ 20 | 12 | ≈ 102 |
9 | ≈ 21 | 13 | ≈ 103 |
a | ≈ 22 | 14 | ≈ 110 |
quaternary (base 4) | base 16 |
---|---|
1 | = 1 |
2 | = 2 |
3 | = 3 |
10 | = 4 |
11 | = 5 |
12 | = 6 |
13 | = 7 |
20 | = 8 |
21 | = 9 |
22 | = a |