ArticleslgStudy

computer science

Bi-quinary coded decimal

Bi-quinary coded decimal is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Bi-quinary coded decimal rather than just read about it. In short: Bi-quinary coded decimal is a numeral encoding scheme used in many abacuses 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 (quinary) component.

Bi-quinary coded decimal — main illustration
Bi-quinary coded decimal — illustration

Key takeaways

  • Bi-quinary coded decimal belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Bi-quinary coded decimal to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Bi-quinary coded decimal from memory before moving on to harder problems.

Reference excerpt

Bi-quinary coded decimal is a numeral encoding scheme used in many abacuses 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 (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 a 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:

Roman and Chinese abacuses Stibitz relay calculators at Bell Labs from Model II onwards FACOM 128 relay calculators at Fujitsu

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.

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 has four bits: one bi bit (5), three Johnson counter-coded quinary bits and one parity check bit.

See also Binary-coded decimal – System of digitally encoding numbers Binary number Chisanbop Decimal computer – Computer operating on base-10 numbers FACOM 128 Finger binary Quinary Two-out-of-five code

References

Further reading Military Handbook: Encoders - Shaft Angle To Digital (PDF). United States Department of Defense. 1991-09-30. MIL-HDBK-231A. Archived (PDF) from the original on 2020-07-25. Retrieved 2020-07-25. (NB. Supersedes MIL-HDBK-231(AS) (1970-07-01).)

Illustrations

Bi-quinary coded decimal illustration
Bi-quinary coded decimal: Japanese abacus. The right side represents 1,234,567,890 in bi-quinary: each column is one digit, with the lower beads representing "ones" and the upper beads "fives".
Japanese abacus. The right side represents 1,234,567,890 in bi-quinary: each column is one digit, with the lower beads representing "ones" and the upper beads "fives".
Bi-quinary coded decimal: IBM 650 front panel while running, with active bits just discernible
IBM 650 front panel while running, with active bits just discernible
Bi-quinary coded decimal: Close-up of IBM 650 indicators while running, with active bits visible
Close-up of IBM 650 indicators while running, with active bits visible

Worked examples

Example 1 — a first encounter with Bi-quinary coded decimal

Start with the simplest possible case. Write down what Bi-quinary coded decimal claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Bi-quinary coded decimal before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Bi-quinary coded decimal ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Bi-quinary coded decimal

In research
Bi-quinary coded decimal appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Bi-quinary coded decimal in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Bi-quinary coded decimal is common in secondary-school and first-year university syllabi. It links to neighbouring topics Computer arithmetic, Numeral systems, so understanding it makes those chapters shorter.
In everyday life
Look for Bi-quinary coded decimal outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Bi-quinary coded decimal” →

How to study Bi-quinary coded decimal in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Bi-quinary coded decimal means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Bi-quinary coded decimal out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Bi-quinary coded decimal in simple terms?

Bi-quinary coded decimal is a numeral encoding scheme used in many abacuses 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 (quinary) component.

Why does Bi-quinary coded decimal matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Bi-quinary coded decimal?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Bi-quinary coded decimal.

Tags

  • Computer arithmetic
  • Numeral systems

Keep exploring