HEELPBOOK - What is Binary Coded Decimal (BCD)? ################## ######### Problem: What is Binary Coded Decimal (BCD)? ######### Solution: Binary Coded Decimal (BCD) is a method of encoding numbers where each decimal digit is encoded separately. Using this code scheme, your computer is able to manipulate numbers to the base ten (decimal) instead of to the base two (binary). BCD manipulation preserves accuracy by reducing round-off errors. The BCD encoding is performed by using a four-digit binary number to encode each digit of the base ten number. Computations are then performed using the encoded digits. The astute student will see that this is a lot like converting from binary to hexadecimal. In this case though there are no letters like A through F which is part of making it easier to read. In a pure binary sense the 16-bit word can have a value of 0 to 65535 but BCD limits us from 0 to 9999. The following table shows the BCD representation of the decimal numbers 0 through 9: BCD Decimal 0000 0 0001 1 0010 2 0011 3 0100 4 0101 5 0110 6 0111 7 1000 8 1001 9 Using the table above we can convert the decimal 542 into the equivalent in BCD, which is 010101000010. ############ ARTICLE INFO ############# Article Month: October Article Date: 05/10/2012 Permalink: http://heelpbook.altervista.org/2012/what-is-binary-coded-decimal-bcd/ Source: http://digital.ni.com/public.nsf/websearch/59C2A05C123008F286256CA90069A6F8?OpenDocument Language: English View more articles on: http://www.heelpbook.net/ Follow us on Facebook: http://it-it.facebook.com/pages/HeelpBook/100790870008832 Follow us on Twitter: https://twitter.com/#!/HeelpBook Follow us on RSS Feed: http://feeds.feedburner.com/Heelpbook Follow us on Delicious: http://delicious.com/heelpbook Linkedin: http://it.linkedin.com/pub/stefano-maggi/27/73a/b20