0
1.8kviews
Compare binary code with BCD code. Give the example
1 Answer
written 2.8 years ago by |
Binary Coded Decimal (BCD) is the number system or code which has the binary numbers or digits to represent a decimal number.
In BCD, we can use the binary number from 0000-1001 only.
Suppose, if a number have single decimal digit then its equivalent BCD will be the respective four binary digits of that decimal number.
Decimal | Binary | BCD |
---|---|---|
0 | 0000 | 0000 |
1 | 0001 | 0001 |
7 | 0111 | 0111 |
8 | 1000 | 1000 |
9 | 1001 | 1001 |
10 | 1010 | 0001 0000 |
11 | 1011 | 0001 0001 |
From [0 to 9] decimal numbers both binary and BCD is equal but when the decimal number is more than one bit, BCD differs from binary.