**Binary Coded Decimal**, or **BCD**, is another process for converting decimal numbers into their binary equivalents.

- It is a form of binary encoding where each digit in a decimal number is represented in the form of bits.
- This encoding can be done in either 4-bit or 8-bit (usually 4-bit is preferred).
- It is a fast and efficient system that converts the decimal numbers into binary numbers as compared to the existing binary system.
- These are generally used in digital displays where is the manipulation of data is quite a task.
- Thus BCD plays an important role here because the manipulation is done treating each digit as a separate single sub-circuit.

Many decimal values, have an infinite place-value representation in binary but have a finite place-value in binary-coded decimal. For example, 0.2 in binary is .001100… and in BCD is 0.0010. It avoids fractional errors and is also used in huge financial calculations.

Consider the following truth table and focus on how are these represented.

**Truth Table for Binary Coded Decimal
**

DECIMAL NUMBER | BCD |
---|---|

0 | 0000 |

1 | 0001 |

2 | 0010 |

3 | 0011 |

4 | 0100 |

5 | 0101 |

6 | 0110 |

7 | 0111 |

8 | 1000 |

9 | 1001 |

In the **BCD numbering system**, the given decimal number is segregated into chunks of four bits for each decimal digit within the number. Each decimal digit is converted into its direct binary form (usually represented in 4-bits).

**For example: **

1. Convert (123)10 in BCD

From the truth table above,

1 -> 0001

2 -> 0010

3 -> 0011

thus, BCD becomes -> 0001 0010 0011

2. Convert (324)10 in BCD

(324)10 -> 0011 0010 0100 (BCD)

Again from the truth table above,

3 -> 0011

2 -> 0010

4 -> 0100

thus, BCD becomes -> 0001 0010 0011

This is how decimal numbers are converted to their equivalent BCDs.

- It is noticeable that the BCD is nothing more than a binary representation of each digit of a decimal number.
- It cannot be ignored that the BCD representation of the given decimal number uses extra bits, which makes it heavy-weighted.

**Related articles:**

- Program to Convert BCD number into Decimal number
- BCD Adder in Digital Logic
- BCD to 7 Segment Decoder

Attention reader! Don’t stop learning now. Get hold of all the important DSA concepts with the **DSA Self Paced Course** at a student-friendly price and become industry ready.

## Recommended Posts:

- Decimal to binary number using recursion
- Convert Binary fraction to Decimal
- Recursive Program for Binary to Decimal
- Program for Decimal to Binary Conversion
- Program for Binary To Decimal Conversion
- Decimal representation of given binary string is divisible by 10 or not
- Decimal to Binary using recursion and without using power operator
- Decimal to binary conversion without using arithmetic operators
- Binary to decimal and vice-versa in python
- Decimal representation of given binary string is divisible by 20 or not
- Convert decimal fraction to binary number
- Python program to convert decimal to binary number
- Maximum decimal equivalent possible among all connected components of a Binary Valued Graph
- Convert Decimal To Hexa-Decimal including negative numbers
- Value of Pi(Π) up to 50 decimal places
- 9's complement of a decimal number
- 10's Complement of a decimal number
- BCD addition of given Decimal numbers
- Program for Hexadecimal to Decimal
- Convert a given Decimal number to its BCD representation

If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.

Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.