trinary

"trinary" is also a: user

created by -aqham-
(idea) by danthaman (1.2 y) (print)   (I like it!) Fri Oct 18 2002 at 13:57:07
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:
  1. 0001
  2. 0002
  3. 0010
  4. 0011
  5. 0012
  6. 0020
  7. 0021
  8. 0022
  9. 0100
  10. 0101
  11. 0102
  12. 0110
  13. 0111
  14. 0112
  15. 0120
  16. 0121
  17. 0122
  18. 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 it's 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.

(idea) by fibonaci (3 y) (print)   (I like it!) Wed Oct 08 2003 at 17:02:55

And, while some people call this ternary, they are in fact incorrect. It goes:

  • Unary
  • Binary
  • Trinary

And

  • Primary
  • Secondary
  • Ternary

So, calling this ternary computing would be calling this something of the successor to secondary computing, whatever the heck that means.

Interestingly, the fourth item in both of these lists is quaternary.

Y'know, if you log in, you can write something here, or contact authors directly on the site. Create a New User if you don't already have an account.