Binary-coded decimal (BCD)
Encoding each digit on its own in four bits instead of turning the whole number into binary — decimal arithmetic that escapes binary's rounding.
Rather than translating a whole number into base two, each decimal digit is coded separately in four bits: 0 becomes 0000, 9 becomes 1001, and the six leftover patterns go unused. The cost is wasted bits; the payoff is that numbers stay exactly decimal. A tenth written 0.1 is precisely 0.1, not the endless binary fraction that makes floating point drift in its last digit.
The early machines were largely decimal, and staying with the digits people and accountants recognised was natural — punched-card equipment, ENIAC and IBM's arithmetic all counted in tens. The code survives where exactness outweighs speed: calculators, currency systems, and dedicated BCD instructions in processors. Excess-3 and two-out-of-five are variations on the same theme, decimal digits dressed up as bits.