Ternary numeral system

From Free net encyclopedia

Template:Table Numeral Systems Ternary or trinary is the base-Template:Num numeral system. Ternary digits are known as trits (trinary digit), with a name analogous to "bit". Although ternary most often refers to a system in which the three digits, Template:Num, Template:Num, and Template:Num, are all nonnegative integers, the adjective also lends its name to the balanced ternary system, used in comparison logic and ternary computers.

Contents

Comparison to other radixes

Compared to base 10 and 2

Standard ternary
Decimal 0 1 2 3 4 5 6 7 8 9 10
Binary 0 1 10 11 100 101 110 111 1000 1001 1010
Ternary 0 1 2 10 11 12 20 21 22 100 101

Compact ternary representation: base 9 and 27

Ternary is inefficient for human usage, just as binary is. Therefore, nonary (base 9, each digit is two ternary digits) or septemvigesimal (base 27, each digit is three ternary digits) is often used, similar to how octal and hexadecimal systems are used in place of binary. Ternary also has a unit similar to a byte, the tryte, which is six ternary digits.

See also

External links

fr:Système trinaire ko:삼진법 ru:Троичная система счисления sv:Trinär