Skip to content

VLSIFacts

Let's Program the Transistors

  • Home
  • DHD
    • Digital Electronics
    • Fault Tolerant System Design
    • TLM
    • Verification
    • Verilog
    • VHDL
    • Xilinx
  • Embedded System
    • 8085 uP
    • 8086 uP
    • 8051 uC
  • VLSI Technology
    • Analog Electronics
    • Memory Devices
    • VLSI Circuits
  • Interview
    • Interview Experience
    • Training Experience
    • Question Bank
  • Notifications
  • QUIZ
  • Community
  • Job Board
  • Contact Us
  • Toggle search form

How to Convert Decimal to BCD and BCD to Decimal

Posted on March 15, 2023June 19, 2025 By vlsifacts No Comments on How to Convert Decimal to BCD and BCD to Decimal

In one of the previous articles, we learned about Binary Coded Decimal (BCD) numbers. In this article, we will learn about how to convert a Decimal number to a BCD number and vice versa.

Decimal number to BCD number Conversion

To convert a decimal number to the BCD number, we need to replace every digit of the decimal number with its 4-bit unsigned binary equivalent.

Example: Convert the decimal number 9673 to BCD.

Solution:

Example of Decimal to BCD Conversion

967310 = (1001_0110_0111_0011)BCD

Example: Convert the decimal number 96.73 to BCD.

Solution:

Example of Fractional Decimal to BCD Conversion

96.7310 = (10010110.01110011)BCD

BCD number to Decimal number Conversion

To convert a BCD number to a decimal number, we need to start from the right and group the bits into 4 bits, and then replace every group of 4 bits with the equivalent decimal digit.

Example: Convert the BCD number 100001010111 to Decimal.

Solution:

Example of BCD to Decimal conversion

(100001010111)BCD = 85710

Example: Convert the BCD number 011110101000 to Decimal.

Solution:

Example of invalid BCD number

The given BCD number has one invalid code 1010, which is not a valid BCD number. So, the given number is not a valid BCD number, and therefore, we can not convert it to decimal.

Previous           Table of Content           Next

Spread the Word

  • Click to share on Facebook (Opens in new window) Facebook
  • Click to share on X (Opens in new window) X
  • Click to share on LinkedIn (Opens in new window) LinkedIn
  • Click to share on Pinterest (Opens in new window) Pinterest
  • Click to share on Tumblr (Opens in new window) Tumblr
  • Click to share on Pocket (Opens in new window) Pocket
  • Click to share on Reddit (Opens in new window) Reddit
  • Click to email a link to a friend (Opens in new window) Email
  • Click to print (Opens in new window) Print

Like this:

Like Loading...

Related posts:

  1. Binary Coded Decimal
  2. What are the Different Types of BCD Codes
  3. BCD Addition
  4. Excess-3 Code and its Conversion
Digital Electronics Tags:BCD Code, BCD to Decimal, Binary Coded Decimal, Decimal to BCD

Post navigation

Previous Post: What are the Different Types of BCD Codes
Next Post: How to Convert Binary to BCD and BCD to Binary

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Top Posts & Pages

  • ASCII Code
  • NAND and NOR gate using CMOS Technology
  • Circuit Design of a 4-bit Binary Counter Using D Flip-flops
  • Truth Tables, Characteristic Equations and Excitation Tables of Different Flipflops
  • Difference between $display, $monitor, $write and $strobe in Verilog


 

Copyright © 2025 VLSIFacts.

Powered by PressBook WordPress theme

%d