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 |
binary (base 2) | 12 | 102 | 112 | 1002 | 1012 | 1102 | 1112 | 10002 | 10012 | 10102 |
In mathematics and digital electronics, a binary number is a number expressed in the binary numeral system or base-2 numeral system which represents numeric values using two different symbols: typically 0 (zero) and 1 (one). The base-2 system is a positional notation with a radix of 2. Because of its straightforward implementation in digital electronic circuitry using logic gates, the binary system is used internally by almost all modern computers and computer-based devices. Each digit is referred to as a bit.
binary (base 2) | 12 | 102 | 112 | 1002 | 1012 | 1102 | 1112 | 10002 | 10012 | 10102 |
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 |
---|---|---|---|---|---|---|---|---|---|---|
binary (base 2) | 12 | 102 | 112 | 1002 | 1012 | 1102 | 1112 | 1 0002 | 1 0012 | 1 0102 |