Binary Coded Decimal (BCD) is a way to represent decimal numbers (the numbers we commonly use, which are base-10) in a binary format (base-2). In BCD, each digit of a decimal number is represented by its own binary sequence.
How BCD Works:
Each digit in the decimal number is separately converted to a 4-bit binary equivalent.
For example, the decimal digit "5" is represented by the binary number "0101" in BCD.
The decimal digit "9" is represented by "1001" in BCD.
Example:
Let's take the decimal number 593.
First, break it down into its individual digits: 5, 9, and 3.
Convert each digit into a 4-bit binary number:
5 in binary is 0101.
9 in binary is 1001.
3 in binary is 0011.
so 593 is = 0101 1001 0011 (BCD)