Bi-quinary coded decimal is a
numeral encoding scheme used in many
abacus
An abacus ( abaci or abacuses), also called a counting frame, is a hand-operated calculating tool which was used from ancient times in the ancient Near East, Europe, China, and Russia, until the adoption of the Hindu–Arabic numeral system. A ...
es and in some
early computers, notably the
Colossus.
The term ''bi-quinary'' indicates that the code comprises both a two-state (''bi'') and a five-state (''quin''ary) component. The encoding resembles that used by many abacuses, with four beads indicating the five values either from 0 through 4 or from 5 through 9 and another bead indicating which of those ranges (which can alternatively be thought of as +5).
Several human languages, most notably
Fula and
Wolof also use biquinary systems. For example, the Fula word for 6, ''jowi e go'o'', literally means ''five
lusone''.
Roman numerals
Roman numerals are a numeral system that originated in ancient Rome and remained the usual way of writing numbers throughout Europe well into the Late Middle Ages. Numbers are written with combinations of letters from the Latin alphabet, eac ...
use a symbolic, rather than positional, bi-quinary base, even though
Latin
Latin ( or ) is a classical language belonging to the Italic languages, Italic branch of the Indo-European languages. Latin was originally spoken by the Latins (Italic tribe), Latins in Latium (now known as Lazio), the lower Tiber area aroun ...
is completely decimal.
The Korean finger counting system
Chisanbop
Chisanbop or chisenbop (from Korean ''chi (ji)'' finger + ''sanpŏp (sanbeop)'' calculation 지산법/指算法), sometimes called Fingermath, is a finger counting method used to perform basic mathematical operations. According to ''The Complete ...
uses a bi-quinary system, where each finger represents a one and a thumb represents a five, allowing one to count from 0 to 99 with two hands.
One advantage of one bi-quinary encoding scheme on digital computers is that it must have two bits set (one in the binary field and one in the quinary field), providing a built-in
checksum
A checksum is a small-sized block of data derived from another block of digital data for the purpose of detecting errors that may have been introduced during its transmission or storage. By themselves, checksums are often used to verify dat ...
to verify if the number is valid or not. (Stuck bits happened frequently with computers using
mechanical relays.)
Examples
Several different representations of bi-quinary coded decimal have been used by different machines. The two-state component is encoded as one or two
bits, and the five-state component is encoded using three to five bits. Some examples are:
* Roman and Chinese
abacus
An abacus ( abaci or abacuses), also called a counting frame, is a hand-operated calculating tool which was used from ancient times in the ancient Near East, Europe, China, and Russia, until the adoption of the Hindu–Arabic numeral system. A ...
es
*
Stibitz relay calculators at Bell Labs from
Model II onwards
*
FACOM 128 relay calculators at
Fujitsu
IBM 650
The
IBM 650
The IBM 650 Magnetic Drum Data-Processing Machine is an early digital computer produced by IBM in the mid-1950s. It was the first mass-produced computer in the world. Almost 2,000 systems were produced, the last in 1962, and it was the firs ...
uses seven bits: two ''bi'' bits (0 and 5) and five ''quinary'' bits (0, 1, 2, 3, 4), with error checking.
Exactly one ''bi'' bit and one ''quinary'' bit is set in a valid digit. The bi-quinary encoding of the internal workings of the machine are evident in the arrangement of its lights – the ''bi'' bits form the top of a T for each digit, and the ''quinary'' bits form the vertical stem.
Remington Rand 409
The
Remington Rand 409 has five bits: one ''quinary'' bit (tube) for each of 1, 3, 5, and 7 - only one of these would be on at the time. The fifth ''bi'' bit represented 9 if none of the others were on; otherwise it added 1 to the value represented by the other ''quinary'' bit. The machine was sold in the two models
UNIVAC 60 and
UNIVAC 120.
UNIVAC Solid State
The
UNIVAC Solid State uses four bits: one ''bi'' bit (5), three binary coded ''quinary'' bits (4 2 1)
and one
parity check bit
UNIVAC LARC
The
UNIVAC LARC
The UNIVAC LARC, short for the ''Livermore Advanced Research Computer'', is a mainframe computer designed to a requirement published by Edward Teller in order to run hydrodynamic simulations for nuclear weapon design. It was one of the earliest s ...
has four bits:
one ''bi'' bit (5), three
Johnson counter-coded ''quinary'' bits and one parity check bit.
See also
*
Binary-coded decimal
In computing and electronic systems, binary-coded decimal (BCD) is a class of binary encodings of decimal numbers where each digit is represented by a fixed number of bits, usually four or eight. Sometimes, special bit patterns are used f ...
*
Binary number
A binary number is a number expressed in the Radix, base-2 numeral system or binary numeral system, a method for representing numbers that uses only two symbols for the natural numbers: typically "0" (zero) and "1" (one). A ''binary number'' may ...
*
Chisanbop
Chisanbop or chisenbop (from Korean ''chi (ji)'' finger + ''sanpŏp (sanbeop)'' calculation 지산법/指算法), sometimes called Fingermath, is a finger counting method used to perform basic mathematical operations. According to ''The Complete ...
*
Finger binary
Finger binary is a system for Finger counting, counting and displaying Binary numeral system, binary numbers on the fingers of either or both hands. Each finger represents one binary digit or bit. This allows counting from zero to 31 using the fi ...
*
Quinary
*
Two-out-of-five code
*
FACOM 128
References
Further reading
* (NB. Supersedes MIL-HDBK-231(AS) (1970-07-01).)
{{DEFAULTSORT:Bi-Quinary Coded Decimal
Computer arithmetic
Numeral systems