18th November 2019

encyclopedia
14

What is the 8421 code?

8421 code. 8421 code A weighted code in which each decimal digit 0 through 9 is represented by a four-bit codeword. The bit positions in each codeword are assigned weights, from left to right, of 8, 4, 2, and 1. See also binary-coded decimal, excess-3 code, biquinary code.

Also, what is BCD data type?

In computing and electronic systems, binary-coded decimal (BCD) is a class of binary encodings of decimal numbers where each decimal digit is represented by a fixed number of bits, usually four or eight. Special bit patterns are sometimes used for a sign or for other indications (e.g., error or overflow).

Why is BCD used?

The main advantage of the Binary Coded Decimal system is that it is a fast and efficient system to convert the decimal numbers into binary numbers as compared to the pure binary system. But the BCD code is wasteful as many of the 4-bit states (10-to-16) are not used but decimal displays have important applications.
Write Your Answer

Rate

80% people found this answer useful, click to cast your vote.

4 / 5 based on 2 votes.

Bookmark

Press Ctrl + D to add this site to your favorites!

Share