# What is a 2421 code?

## What is a 2421 code?

The Aiken code (also known as 2421 code) is a complementary binary-coded decimal (BCD) code. A group of four bits is assigned to the decimal digits from 0 to 9 according to the following table.

**How do you write binary-coded decimals?**

Simply divide the binary number into groups of four digits, starting with the least significant digit and then write the decimal digit represented by each 4-bit group. Add additional zero’s at the end if required to produce a complete 4-bit grouping. So for example, 1101012 would become: 0011 01012 or 3510 in decimal.

### Is 2421 a non weighted code?

In the above list, the first three i.e., 8421, 2421 and 5211 are Weighted Binary Codes while the other two are Non-Weighted Binary Codes.

**What is the equivalent 2421 code for BCD 0111?**

Example

Decimal No. | BCD (8421) | 2421 Code |
---|---|---|

5 | 0101 | 0101 |

6 | 0110 | 1100 |

7 | 0111 | 1101 |

8 | 1000 | 1110 |

## What is the binary subtraction of 101001 010110?

Question :- what is the binary subtraction of 101001-010110? → 010011 (Ans.)

**How do you convert binary to binary coded decimal?**

There are the following steps to convert the binary number to BCD: First, we will convert the binary number into decimal. We will convert the decimal number into BCD….Example 1: (11110) 2.

Binary Code | Decimal Number | BCD Code |
---|---|---|

0 1 1 1 | 7 | 0 : 0 1 1 1 |

1 0 0 0 | 8 | 0 : 1 0 0 0 |

1 0 0 1 | 9 | 0 : 1 0 0 1 |

1 0 1 0 | 10 | 1 : 0 0 0 0 |

### Is 2421 a sequential code?

The 8421 and Excess-3 codes are examples of sequential codes. 2421 and 5211 codes do not come under sequential codes.

**Is 5211 code reflective?**

Codes 2421, 5211, and excess-3 are reflective, whereas the 8421 code is not. The BCD (Binary Coded Decimal) is a straight assignment of the binary equivalent. It is possible to assign weights to the binary bits according to their positions.