The BCD represents a code scheme for numbers that allows base-ten computer calculation instead of the more common base two. BCD manipulation preserves accuracy by reducing round-off errors. BCD encoding is performed by using a four-digit binary number to encode each digit of the base ten number.
BCD |
Decimal |
---|---|
0000 |
0 |
0001 |
1 |
0010 |
2 |
0011 |
3 |
0100 |
4 |
0101 |
5 |
0110 |
6 |
0111 |
7 |
1000 |
8 |
1001 |
9 |