The ternary numeral system (also called base-3) has three as its base. Analogous to a bit, a ternary digit is a trit (trinary digit). One trit is equivalent to log23 (about 1.58496) bits of information.
ternary (base 3) | 13 | 23 | 103 | 113 | 123 | 203 | 213 | 223 | 1003 | 1013 |
quaternary (base 4) | 14 | 24 | 34 | 104 | 114 | 124 | 134 | 204 | 214 | 224 |
Quaternary is the base-4 numeral system. It uses the digits 0, 1, 2 and 3 to represent any real number.
quaternary (base 4) | 14 | 24 | 34 | 104 | 114 | 124 | 134 | 204 | 214 | 224 |
ternary (base 3) | 13 | 23 | 103 | 113 | 123 | 203 | 213 | 223 | 1003 | 1013 |
ternary (base 3) | 13 | 23 | 103 | 113 | 123 | 203 | 213 | 223 | 1003 | 1013 |
---|---|---|---|---|---|---|---|---|---|---|
quaternary (base 4) | 14 | 24 | 34 | 104 | 114 | 124 | 134 | 204 | 214 | 224 |