result | |
---|---|
0123456 = 186510 | explain |
base 2 | ternary (base 3) | base 2 | ternary (base 3) |
---|---|---|---|
1 | = 1 | 1011 | = 102 |
10 | = 2 | 1100 | = 110 |
11 | = 10 | 1101 | = 111 |
100 | = 11 | 1110 | = 112 |
101 | = 12 | 1111 | = 120 |
110 | = 20 | 10000 | = 121 |
111 | = 21 | 10001 | = 122 |
1000 | = 22 | 10010 | = 200 |
1001 | = 100 | 10011 | = 201 |
1010 | = 101 | 10100 | = 202 |
The ternary numeral system (also called base-3) has three as its base. Analogous to a bit, a ternary digit is a trit (trinary digit). One trit is equivalent to log23 (about 1.58496) bits of information.
ternary (base 3) | base 2 | ternary (base 3) | base 2 |
---|---|---|---|
1 | ≈ 1 | 102 | ≈ 1011 |
2 | ≈ 10 | 110 | ≈ 1100 |
10 | ≈ 11 | 111 | ≈ 1101 |
11 | ≈ 100 | 112 | ≈ 1110 |
12 | ≈ 101 | 120 | ≈ 1111 |
20 | ≈ 110 | 121 | ≈ 10000 |
21 | ≈ 111 | 122 | ≈ 10001 |
22 | ≈ 1000 | 200 | ≈ 10010 |
100 | ≈ 1001 | 201 | ≈ 10011 |
101 | ≈ 1010 | 202 | ≈ 10100 |
base 2 | ternary (base 3) |
---|---|
1 | = 1 |
10 | = 2 |
11 | = 10 |
100 | = 11 |
101 | = 12 |
110 | = 20 |
111 | = 21 |
1000 | = 22 |
1001 | = 100 |
1010 | = 101 |