• Skip to main content
  • Skip to primary sidebar
  • Skip to secondary sidebar
  • Skip to footer

Computer Notes

Library
    • Computer Fundamental
    • Computer Memory
    • DBMS Tutorial
    • Operating System
    • Computer Networking
    • C Programming
    • C++ Programming
    • Java Programming
    • C# Programming
    • SQL Tutorial
    • Management Tutorial
    • Computer Graphics
    • Compiler Design
    • Style Sheet
    • JavaScript Tutorial
    • Html Tutorial
    • Wordpress Tutorial
    • Python Tutorial
    • PHP Tutorial
    • JSP Tutorial
    • AngularJS Tutorial
    • Data Structures
    • E Commerce Tutorial
    • Visual Basic
    • Structs2 Tutorial
    • Digital Electronics
    • Internet Terms
    • Servlet Tutorial
    • Software Engineering
    • Interviews Questions
    • Basic Terms
    • Troubleshooting
Menu

Header Right

Home » Electronics » Binary » BINARY CODED DECIMAL (BCD)
Next →
← Prev

BINARY CODED DECIMAL (BCD)

By Dinesh Thakur

The binary coded decimal (BCD) is a type of binary code used to represent a given decimal number in an equivalent binary form. Its main advantage is that it allows easy conversion to decimal digits for printing or display and faster calculations.

The most common BCD code is the 8421 BCD code. In this, the BCD equivalent of a decimal number is written by replacing each decimal digit in integer and fractional parts with its four-bit binary equivalent ‘(or nibble). Here 8, 4, 2 and 1 represent the weights of different bits in the four-bit groups, starting from the (MSB) most significant bit (to extreme left) and proceeding towards the least significant (LSB) bit.

This feature makes it a weighted code, whose main characteristic is that each binary digit in the four bit group representing a given decimal digit is assigned a weight, and for each group of four bits, the sum of the weights of those binary digits whose value is 1 is equal to the decimal digit which they represent.

For example, if we look at table, we find that the decimal digit 9 when represented in 8421 BCD is 1001. Now the decimal digit assigned to first 1 is 8 and to the second 1 is 1. If we add 8 and 1 we get the required decimal number which is 9.

 BCD Code Chart

The 4221 BCD and 5421 BCD are other weighted BCD codes shown in table. The numbers 4, 2, 2, 1 in 4221 BCD and 5, 4, 2 and 1 in 5421 BCD represent weights of the relevant bits.

Now let us consider some examples, where we convert the given decimal numbers to BCD.

The 8421 BCD code for 9.2 is 1001.0010.

 BCD for 9.2

The 4221 BCD code for 9.2 is 1111.0010.

The 5421 BCD code for 9.2 is 1100.0010.

BCD code is useful for outputting to displays that are always numeric (0 to 9), such as those found in digital clocks or digital voltmeters.

You’ll also like:

  1. What is EBCDIC(Extended Binary Coded Decimal Inter change code)?
  2. DECIMAL to BINARY conversion – C program
  3. Convert Decimal Integer to Binary Number Example | Java Examples
  4. Convert Binary integer to Decimal Number Example | Java Examples
  5. What are BCD numbers
Next →
← Prev
Like/Subscribe us for latest updates     

About Dinesh Thakur
Dinesh ThakurDinesh Thakur holds an B.C.A, MCDBA, MCSD certifications. Dinesh authors the hugely popular Computer Notes blog. Where he writes how-to guides around Computer fundamental , computer software, Computer programming, and web apps.

Dinesh Thakur is a Freelance Writer who helps different clients from all over the globe. Dinesh has written over 500+ blogs, 30+ eBooks, and 10000+ Posts for all types of clients.


For any type of query or something that you think is missing, please feel free to Contact us.


Primary Sidebar

Digital Electronics

Digital Electronics

  • Electronics - Codes
  • Electronics - Excess-3 Code
  • Electronics - BCD
  • Electronics - Binary Code Types
  • Electronics - Gray Code
  • Electronics - Digital System
  • Electronics - DSSS
  • Electronics - FHSS
  • Electronics - Analog System
  • Electronics - Diode
  • Electronics - Flip-flop
  • Electronics - Boolean Logic
  • Electronics - Analogue-to-digital
  • Electronics - Radio Modulations Types
  • Electronics - 8088
  • Electronics - ADC
  • Electronics - Breadboard
  • Electronics - 80486
  • Electronics - Amplitude Modulation
  • Electronics - Chip

Other Links

  • Digital Electronics - PDF Version

Footer

Basic Course

  • Computer Fundamental
  • Computer Networking
  • Operating System
  • Database System
  • Computer Graphics
  • Management System
  • Software Engineering
  • Digital Electronics
  • Electronic Commerce
  • Compiler Design
  • Troubleshooting

Programming

  • Java Programming
  • Structured Query (SQL)
  • C Programming
  • C++ Programming
  • Visual Basic
  • Data Structures
  • Struts 2
  • Java Servlet
  • C# Programming
  • Basic Terms
  • Interviews

World Wide Web

  • Internet
  • Java Script
  • HTML Language
  • Cascading Style Sheet
  • Java Server Pages
  • Wordpress
  • PHP
  • Python Tutorial
  • AngularJS
  • Troubleshooting

 About Us |  Contact Us |  FAQ

Dinesh Thakur is a Technology Columinist and founder of Computer Notes.

Copyright © 2025. All Rights Reserved.

APPLY FOR ONLINE JOB IN BIGGEST CRYPTO COMPANIES
APPLY NOW