8421
8421 refers to a binary-coded decimal (BCD) representation in which each decimal digit is encoded by a four-bit group with weights 8, 4, 2, and 1. In standard 8421 BCD, the patterns 0000 through 1001 represent the decimal digits 0 through 9; patterns 1010 through 1111 are invalid for representing digits. Thus a decimal number such as 38 would be encoded as two nibbles: 0011 for 3 and 1000 for 8.
The 8421 code is valued for its simple decimal interpretation: the value of each nibble is recovered
Applications of 8421 BCD include digital clocks, calculators, digital readouts, and display drivers for seven-segment displays.
Relation to other codes: 8421 is one of several BCD encodings. It is often contrasted with Excess-3