Trinary or
base 3 is the
number base where numbers are
represented using only 0, 1 and 2. Here is a quick base 10 to base 3 conversion:
- 0001
- 0002
- 0010
- 0011
- 0012
- 0020
- 0021
- 0022
- 0100
- 0101
- 0102
- 0110
- 0111
- 0112
- 0120
- 0121
- 0122
- 0200
That is of course using regular trinary as you can simply figure it out with a bit of basic mathematical knowledge.
Balanced Trinary
A nicer way of using trinary (to its full potential!) is a method of writing ternary instead of using 0,1,2 but to use -1,0,1. This is quite handy for use in programming with trinary (Malbolge comes to mind.. *shudder*), well in theory anyway.
NB: Some people call this ternary too.