ternary

(redirected from ternarily)
Also found in: Dictionary, Thesaurus, Medical.

ternary

1. Maths
a. (of a number system) to the base three
b. involving or containing three variables
2. (of an alloy, mixture, or chemical compound) having three different components or composed of three different elements
Collins Discovery Encyclopedia, 1st edition © HarperCollins Publishers 2005

ternary

[′tər·nə·rē]
(science and technology)
Consisting of three, as in a three-phase (that is, ternary) liquid system.
McGraw-Hill Dictionary of Scientific & Technical Terms, 6E, Copyright © 2003 by The McGraw-Hill Companies, Inc.

ternary

(programming)
A description of an operator taking three arguments. The only common example is C's ?: operator which is used in the form "CONDITION ? EXP1 : EXP2" and returns EXP1 if CONDITION is true else EXP2. Haskell has a similar "if CONDITION then EXP1 else EXP2" operator.

See also unary, binary.
This article is provided by FOLDOC - Free Online Dictionary of Computing (foldoc.org)