Ternary

Why Trust Techopedia

What Does Ternary Mean?

Ternary is a term for base-three arithmetic. A ternary number system can contain a total of three digits, such as 0, 1 and 2 (as opposed to something like binary code, which is often expressed through ones and zeros). Base-three number systems have many different applications, particularly in computer science and programming.

Advertisements

Ternary is also known as trinary.

Techopedia Explains Ternary

A good way of understanding base-three math is by comparing it to the common decimal (or denary) system, which consists of a total of ten digits (0 through 9). When ascending the decimal system in numerical order and the final digit (9) is surpassed, digits are added to the left, which in turn ascend in numerical order as required.

Since ternary numbers can only incorporate three different digits, their symbolic representations extend in length at a faster rate than in the standard decimal system. In other words, ten is symbolized as “10” in decimal but as “101” ternary. Ternary systems (as well as binary, for that matter) are useful in computing because each digit can be defined by a given state of some computer component that may only exist in and toggle between three different single states.

Although not quite as omnipresent as its binary counterpart, ternary systems exist all across computer science and electronic media, such as in ternary trees, ternary signals, ternary operators and ternary search algorithms.

Advertisements

Related Terms

Margaret Rouse
Technology Specialist
Margaret Rouse
Technology Specialist

Margaret is an award-winning writer and educator known for her ability to explain complex technical topics to a non-technical business audience. Over the past twenty years, her IT definitions have been published by Que in an encyclopedia of technology terms and cited in articles in the New York Times, Time Magazine, USA Today, ZDNet, PC Magazine, and Discovery Magazine. She joined Techopedia in 2011. Margaret’s idea of ​​a fun day is to help IT and business professionals to learn to speak each other’s highly specialized languages.