WordGarden.io

ternary

C2
Uncommon

Pronunciation

UK

  • /tˈɜːnəri/

US

  • /ˈtɜr.nə.ri/not-comparableadjective

Meanings

Adjective

  1. consisting of or involving three parts, options, or values

  2. having three inputs, branches, or values in a formal system such as logic or computing

  3. expressed in or using base 3

Noun

  1. the base-3 numeral system or a value written in it

Beyond the definition

Think of the "tri-" prefix in "triangle"—ternary means relating to or made of three parts. It is not a word you'll use every day, but it often appears in math, computer science, and music. In coding, a ternary operator is a short way to write an if-else statement, so named because it has three parts. In music, ternary form (ABA) describes a pattern where one section returns after a different middle section. It all comes back to the idea of three.

Examples

  1. 1

    Number systems

    The lesson compares binary and ternary number systems.

  2. 2

    Programming

    In JavaScript, a ternary operator can shorten a simple `if-else` statement.

    • Domain

      in programming, a ternary operator is a short form like `condition ? result1 : result2`

  3. 3

    Data chart

    The report includes a ternary diagram to show how the sample is divided among three materials.

See also

Similar

Shades of meaning

Contrast

Do not confuse

Used with (collocations)

  • ternary operator
  • ternary relation
  • ternary system
  • ternary compound

Explore

Forms and spellings

1 form open this card.

Main spelling

  • ternarynounadjective