Binary-coded decimal, or BCD, uses binary digits to represent the decimal digits 0 through 9. A decimal (denary) digit is represented by four binary digits, as shown below:
BCD |
|
Decimal |
0000 |
= |
0 |
0001 |
= |
1 |
0010 |
= |
2 |
0011 |
= |
3 |
0100 |
= |
4 |
0101 |
= |
5 |
0110 |
= |
6 |
0111 |
= |
7 |
1000 |
= |
8 |
1001 |
= |
9 |
2 |
6 |
4 |
0010 |
0110 |
0100 |
1001 |
1000 |
0011 |
9 |
8 |
3 |