Binary-coded decimal (source code)

= Binary-coded decimal
{wiki}

= BCD
{c}
{synonym}

Represent a decimal number by coding each <decimal digit> separately as four <bits> of weights $8,4,2,1$. The codes 10–15 are unused for one digit; a <Boolean circuit> must specify whether these combinations produce a defined result or are <don't-care conditions>.