BCD is a system for storing decimal numbers in a binary form. Each digit of the decimal number is converted to a 4 bit binary number:
All numbers in decimal can be represented in BCD with the four bits easily able to represent numbers from 0 to 9.For example: To represent the decimal number 312 in BCD form:
Note: Each digit of the decimal number (3,1,2) is separately converted
to a binary number instead of converting the number 312 as a whole to
the binary number 100111000.