# Binary coded decimal

Binary coded decimal (BCD) is a system of representing numbers in which each digit of a number is represented by its own binary sequence. BCD is often used in electronic devices, such as calculators and computers, which must handle both decimal and binary representations of numbers.

The most common form of BCD is known as 8421 BCD, in which each digit is represented by a four-bit binary number. For example, the number 1234 would be represented as follows:

0001 (1) 0010 (2) 0011 (3) 0100 (4)

Other forms of BCD exist, such as 74ls90, in which each digit is represented by a seven-bit binary number, or 2421 BCD, in which each digit is represented by a two-bit binary number. What is the BCD of 25? The BCD of 25 is 011001. Why BCD is called 8421 code? The BCD code is so called because it employs a four-bit code for each of the decimal digits, with the exception of the digits 0 through 3. The four bits representing the decimal digits 0 through 3 are called the "8421 code." The reason for this name is that the binary equivalent of the decimal digit 0 is 1000, the binary equivalent of the decimal digit 1 is0100, the binary equivalent of the decimal digit 2 is0010, and the binary equivalent of the decimal digit 3 is0001.

### What is the difference between binary coding and binary-coded decimal?

Binary coding is a system of representing numbers using only two digits, 0 and 1. Binary-coded decimal (BCD) is a system of representing numbers using a combination of binary digits and decimal digits.

The main difference between binary coding and BCD is that binary coding uses only two digits while BCD uses a combination of binary and decimal digits. In binary coding, the numbers are represented using the powers of 2 while in BCD, the numbers are represented using the powers of 10.

#### What is 2421 BCD code?

The decimal number 2421 can be represented in binary-coded decimal (BCD) code as follows:

0100 0010 0100 0001

Each digit of the decimal number is represented by a 4-bit binary code. In this case, the most significant digit (MSD) is the first digit, 4, and the least significant digit (LSD) is the last digit, 1.

To convert a decimal number to BCD code, the number is first divided into its constituent digits. For example, the number 2421 can be divided into the digits 2, 4, 2, and 1. Each digit is then converted to binary form, with the LSD being converted first. In this case, the conversion would yield the following:

0010 (2), 0100 (4), 0010 (2), 0001 (1)

The binary codes for each digit are then concatenated to form the final BCD code. In this example, the BCD code for 2421 would be:

0100 0010 0100 0001 What is the BCD code of 59. 72 decimal )? The BCD code of 59.72 decimal is 0011 1011 .0111 0010 .