Biquinary
From Wikipedia, the free encyclopedia
Biquinary, meaning 2-5, is used to refer to a 2-5 code. This can be implemented using a 4 bit binary structure. It is used in the software program Abacus, for example. The encoding resembles that used by many abaci, one bead indicating 0..4 or 5..9 and 4 beads indicating which of those ranges.
Although modern electronics use binary arithmetic there are some operations that can be easily implemented using biquinary.[citation needed]
[edit] Example
The first 10 Decimal numbers with the first 10 biquinary code numbers are:
decimal | Biquinary Code |
---|---|
0 | 0100001 |
1 | 0100010 |
2 | 0100100 |
3 | 0101000 |
4 | 0110000 |
5 | 1000001 |
6 | 1000010 |
7 | 1000100 |
8 | 1001000 |
9 | 1010000 |
Notice that each biquinary number above has exactly two bits set. This allows significant detection of errors since most errors will result in a number that does not have this pattern and is thus "deformed".
[edit] Encoding
To encode the Biquinary code use the number 5043210.
At each digit multiple the biquinary number times the number 5043210. This will give you the decimal number.
For example take the number 0110000. To change this into Decimal:
(5 * 0) + (0 * 1) + (4 * 1) + (3 * 0) + (2 * 0) + (1 * 0) + (0 * 0) = 4