Balanced ternary

Balanced ternary is a type of numbering system with a base of 3.

Balanced ternary

Balanced ternary is a type of numbering system with a base of 3.

The most common numbering system in use today is decimal. Decimal has a base of ten, so it has 10 digits: 0, 1, 2, 3, 4, 5, 6, 7, 8 and 9. Ternary has a base of three, so it has only 3 digits: 0, 1 and 2. Balanced ternary also has a base of three, but it uses the digits -1, 0 and 1.

Like decimal, balanced ternary uses a place value system. Each place value is equal to the previous place value multiplied by the base. In decimal, we have a one's place, a ten's place, a hundred's place, a thousand's place, and so on. In balanced ternary, we have a one's place, a three's place, a nine's place, a twenty-seven's place, and so on.

Balanced ternary allows you to write numbers less than zero without needing a dedicated minus sign; if the digit with the biggest place-value is negative, the entire number is negative. Another benefit is that when it comes to computers, there are much fewer rounding errors.

Comparing systems

Most balanced ternary systems use the letter T or the symbol ! for the -1 digit. This article will use the letter T.

Base10 Ternary Balanced
Ternary
B. ternary
expanded
1 1 1 1x1
2 2 1t 1x3 + -1x1
3 10 10 1x3 + 0x1
4 11 11 1x3 + 1x1
5 12 1tt 1x9 + -1x3 + -1x1
6 20 1t0 1x9 + -1x3 + 0x1
7 21 1t1 1x9 + -1x3 + 1x1
8 22 10t 1x9 + 0x3 + -1x1
9 100 100 1x9 + 0x3 + 0x1
10 101 101 1x9 + 0x3 + 1x1
Base10 Ternary Balanced
Ternary
B. ternary
expanded
-1 -1 t -1x1
-2 -2 t1 -1x3 + 1x1
-3 -10 t0 -1x3 + 0x1
-4 -11 tt -1x3 + -1x1
-5 -12 t11 -1x9 + 1x3 + 1x1
-6 -20 t10 -1x9 + 1x3 + 0x1
-9 -21 t1t -1x9 + 1x3 + -1x1
-8 -22 t01 -1x9 + 0x3 + 1x1
-9 -100 t00 -1x9 + 0x3 + 0x1
-10 -101 t0t =1x9 + 0x3 + -1x1


Content Disclaimer

Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.

  1. The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
  2. There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
  3. It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
  4. Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
  5. Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.