Next: 3.2 Weighted Codes
Up: 3. Codes
Previous: 3. Codes
Contents
Index
3.1 Binary Coded Decimal (BCD)
- BCD uses a 4-bit character to represent 0-9. We use 10 of the 16 possible combinations when dealing with 4 bits to represent BCD.(Just count to 9 in binary)
| Decimal |
BCD |
| 0 |
0000 |
| 1 |
0001 |
| 2 |
0010 |
| 3 |
0011 |
| 4 |
0100 |
| 5 |
0101 |
| 6 |
0110 |
| 7 |
0111 |
| 8 |
1000 |
| 9 |
1001 |
- And as af this weren't already clear enough, an example:
2004-10-29