Version 1.0, August 31, 2001, Copyright, Hugh Jack 1993-2001

24.2.5 BCD (Binary Coded Decimal)

 

· Each digit is encoded in 4 bits

 

 

· This numbering system makes poor use of the digits, but is easier to convert to/from base 10 numbers. For the two bytes above the maximum numbers possible are from 0-9999 in BCD, but 0-64285 in binary.

 

· Convert the BCD number below to a decimal number,

 

 

· Convert the following binary number to a BCD number,