Binary-coded decimal

From Computer History Wiki
Revision as of 16:44, 31 March 2018 by Jnc (talk | contribs) (A start)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Binary-coded decimal (usually written as BCD) is a way of storing arbitrary-length numbers in decimal base on a binary computer. Each decimal digit is stored as four bits, usually two per byte ('packed'), although sometimes only one per byte ('un-packed'). 4-bit values not needed to encode a decimal digit are often used for other symbols, e.g. '-', to indicate a negative number.