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 2 | quaternary (base 4) | base 2 |
---|---|---|---|
1 | = 1 | 23 | = 1011 |
2 | = 10 | 30 | = 1100 |
3 | = 11 | 31 | = 1101 |
10 | = 100 | 32 | = 1110 |
11 | = 101 | 33 | = 1111 |
12 | = 110 | 100 | = 10000 |
13 | = 111 | 101 | = 10001 |
20 | = 1000 | 102 | = 10010 |
21 | = 1001 | 103 | = 10011 |
22 | = 1010 | 110 | = 10100 |
base 2 | quaternary (base 4) | base 2 | quaternary (base 4) |
---|---|---|---|
1 | ≈ 1 | 1011 | ≈ 23 |
10 | ≈ 2 | 1100 | ≈ 30 |
11 | ≈ 3 | 1101 | ≈ 31 |
100 | ≈ 10 | 1110 | ≈ 32 |
101 | ≈ 11 | 1111 | ≈ 33 |
110 | ≈ 12 | 10000 | ≈ 100 |
111 | ≈ 13 | 10001 | ≈ 101 |
1000 | ≈ 20 | 10010 | ≈ 102 |
1001 | ≈ 21 | 10011 | ≈ 103 |
1010 | ≈ 22 | 10100 | ≈ 110 |
quaternary (base 4) | base 2 |
---|---|
1 | = 1 |
2 | = 10 |
3 | = 11 |
10 | = 100 |
11 | = 101 |
12 | = 110 |
13 | = 111 |
20 | = 1 000 |
21 | = 1 001 |
22 | = 1 010 |