IT lexicon › Hardware › Biquinary code

Biquinary code

Hardware På svenska → Updated: 2026-08-07

A digit encoding borrowed from the abacus's split into fives and ones, so that a failed relay would announce itself immediately.

A biquinary code splits each decimal digit into two parts: a bi part saying whether the digit falls below or above five, and a quinary part picking out which of five positions within that half. The split was not invented for electronics — it was read off the abacus, where the upper bead is worth five and the lower ones are worth one each. The cost is seven bits per digit, wasteful next to BCD's four.

The waste was the entire point. In a valid biquinary digit exactly two bits are set, one from each part. If a relay sticks or a tube dies, the digit lands in a pattern that does not appear in the code table, and the machine can raise an alarm instead of carrying on with a number that has quietly gone wrong. On machines whose components failed mid-run that mattered enormously. The IBM 650 computed in biquinary, and Bell Labs' relay machines used the close relative two-out-of-five. When components became reliable the need went away, and the code went with it.

← Back to the lexicon