Bi-quinary coded decimal is a numeral encoding scheme used in many abacuses and in some early computers, notably the Colossus.[1] The term bi-quinary indicates that the code comprises both a two-state (bi) and a five-state (quinary) 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 [plus] one. Roman numerals use a symbolic, rather than positional, bi-quinary base, even though Latin is completely decimal.

The Korean finger counting system Chisanbop 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 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:

IBM 650

The IBM 650 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.

Value05-01234 bits[3]
010-10000
110-01000
210-00100
310-00010
410-00001
501-10000
601-01000
701-00100
801-00010
901-00001

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.

Value1357-9 bits
00000-0
11000-0
21000-1
30100-0
40100-1
50010-0
60010-1
70001-0
80001-1
90000-1

UNIVAC Solid State

The UNIVAC Solid State uses four bits: one bi bit (5), three binary coded quinary bits (4 2 1)[4][5][6][7][8][9] and one parity check bit

Valuep-5-421 bits
01-0-000
10-0-001
20-0-010
31-0-011
40-0-100
50-1-000
61-1-001
71-1-010
80-1-011
91-1-100

UNIVAC LARC

The UNIVAC LARC has four bits:[9] one bi bit (5), three Johnson counter-coded quinary bits and one parity check bit.

Valuep-5-qqq bits
01-0-000
10-0-001
21-0-011
30-0-111
41-0-110
50-1-000
61-1-001
70-1-011
81-1-111
90-1-110

See also

References

  1. ^ "Why Use Binary? - Computerphile". YouTube. 2015-12-04. Archived 2021-12-12 at the Wayback Machine. Retrieved 2020-12-10.
  2. ^ Mathematics and Computers. 1 ed. Underhill, Vermont, US: McGraw-Hill Book Company, Inc.. 1957. p. 105. LCCN 56-10331. (10+228 pages)
  3. ^ "Part 4. Logical Design of Digital-Computer Circuitry; Chapter 15. Serial Arithmetic Operations; Chapter 15-7. Additional Topics". Digital Computer and Control Engineering. McGraw-Hill Electrical and Electronic Engineering Series. 1 ed. New York, US: McGraw-Hill Book Company, Inc. (printer: The Maple Press Company, York, Pennsylvania, US). 1960. pp. 517–518. ISBN 0-07036981-X. ISSN 2574-7916. LCCN 59015055. OCLC 1033638267. ISBN 978-0-07036981-8. ark:/13960/t72v3b312. Archived 2021-02-19 at the Wayback Machine. Retrieved 2021-02-19. […] The use of the biquinary code in this respect is typical. The binary part (i.e., the most significant bit) and the quinary part (the other 4 bits) are first added separately; then the quinary carry is added to the binary part. If a binary carry is generated, this is propagated to the quinary part of the next decimal digit to the left. […] [1] (xxiv+835+1 pages)
  4. ^ Steinbuch, Karl W. (ed.) (1962). "1.3.3. Die Codierung von Zahlen". Taschenbuch der Nachrichtenverarbeitung (in German). 1 ed. Karlsruhe, Germany: Springer-Verlag OHG. pp. 68–75. LCCN 62-14511.
  5. ^ Steinbuch, Karl W. & Wagner, Siegfried W. (eds.) (1967 [1962]). Taschenbuch der Nachrichtenverarbeitung (in German). 2 ed. Berlin, Germany: Springer-Verlag OHG. LCCN 67-21079. Title No. 1036.
  6. ^ Steinbuch, Karl W.; Weber, Wolfgang; Heinemann, Traute (eds.) (1974 [1967]). "Taschenbuch der Informatik - Band II - Struktur und Programmierung von EDV-Systemen" (in German). Taschenbuch der Nachrichtenverarbeitung. Vol. 2. 3 ed. Berlin, Germany: Springer-Verlag. ISBN 3-540-06241-6. LCCN 73-80607.
  7. ^ Digital Electronics. Philips Technical Library (PTL) / Macmillan Education. Reprint of 1st English ed. Eindhoven, Netherlands: The Macmillan Press Ltd. / N. V. Philips' Gloeilampenfabrieken. 1973-06-18. doi:10.1007/978-1-349-01417-0. ISBN 978-1-349-01419-4. Retrieved 2020-05-11.[dead link] (270 pages) (NB. This is based on a translation of volume I of the two-volume German edition.)
  8. ^ Digitale Elektronik in der Meßtechnik und Datenverarbeitung: Theoretische Grundlagen und Schaltungstechnik (in German). Vol. I. Philips Fachbücher. improved and extended 5th ed. Hamburg, Germany: Deutsche Philips GmbH. 1975. p. 50. ISBN 3-87145-272-6. (xii+327+3 pages) (NB. The German edition of volume I was published in 1969, 1971, two editions in 1972, and 1975. Volume II was published in 1970, 1972, 1973, and 1975.)
  9. ^ "Decimal Representations". quadibloc. 2018. Archived 2018-07-16 at the Wayback Machine. Retrieved 2018-07-16.

Further reading