# Binary Coded Decimal in Digital Electronics

Binary Coded Decimal (BCD) codes are also known as weighted codes. To find BCD equivalent of a binary number, each bit is multiplied by the corresponding weight. For instance, if the BCD code is 7421 then starting from rightmost bit, first bit has a weight of 1, second bit has a weight of 2, third bit has a weight of 4 and similarly fourth bit has a weight of 7.

Let’s understand it by taking few examples:

Example 1
Decimal Number = 8
Binary Equivalent = 1000
BCD Equivalent = 1001 (1*7 + 0*4 + 0*2 + 1*1 = 8 )

Example 2
Decimal Number = 7
Binary Equivalent = 0111
BCD Equivalent = 0111 (0*7 + 1*4 + 1*2 + 1*1 = 7)

Here, 7 can be written as 1000 as well (1*7 + 0*4 + 0*2 + 0*1 = 7). But since bits are placed from Least Significant Bit (LSB), 1000 is invalid.

Below is the table representing decimal number (0-10) in binary and bcd equivalents:

 Decimal Number Binary Equivalent BCD Equivalent (7421) 0 0000 0000 1 0001 0001 2 0010 0010 3 0011 0011 4 0100 0100 5 0101 0101 6 0110 0110 7 0111 0111 8 1000 1001 9 1001 1010 10 1010 0001 0000

Advantage of binary coded decimal number is that it is easy to compute and find the equivalent.

Disadvantage of binary coded decimal number is that some numbers are invalid e.g. 1000 representation of decimal number 7 in example 2 above is invalid.

Hope you find the information presented here useful. Feel free to leave your footprints in the comments section below for any queries or suggestions.

1. Youre so cool! I dont suppose Ive read something like this before. So good to seek out any person with some original ideas on this subject. realy thanks for starting this up. this web site is something that’s wanted on the net, someone with just a little originality. helpful job for bringing one thing new to the internet!

2. Somebody essentially assist to make significantly articles I would state. That is the very first time I frequented your website page and thus far? I surprised with the analysis you made to create this particular put up extraordinary. Magnificent job!