Question
What is binary-coded decimal?
Answer
Binary-coded decimal (BCD) uses binary to express each digit of a decimal number.
Examples:
Decimal | Binary-coded decimal | |||
1 | 2 | 4 | 8 | |
0 | 0 | 0 | 0 | 0 |
1 | 1 | 0 | 0 | 0 |
2 | 0 | 1 | 0 | 0 |
3 | 1 | 1 | 0 | 0 |
4 | 0 | 0 | 1 | 0 |
5 | 1 | 0 | 1 | 0 |
6 | 0 | 1 | 1 | 0 |
7 | 1 | 1 | 1 | 0 |
8 | 0 | 0 | 0 | 1 |
9 | 1 | 0 | 0 | 1 |
Display on Thumbwheel Switch
Dial | Output | |||
0 | ||||
1 | ● | |||
2 | ● | |||
3 | ● | ● | ||
4 | ● | |||
5 | ● | ● | ||
6 | ● | ● | ||
7 | ● | ● | ● | |
8 | ● | |||
9 | ● | ● |