WordGarden.io
Back to search

ternary

C2
nounadjective

Pronunciation

UK

  • /tˈɜːnəri/

US

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

Description

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.

    • Meaning

      ternary diagram

      a triangle-shaped chart used for data with three parts

Forms and spellings

1 form open this card.

Main spelling

  • ternarynounadjective