Binary coded decimal (BCD) - Question 2

Discussion in 'Homework Help' started by Hello, Mar 8, 2009.

  1. Hello

    Thread Starter Active Member

    Dec 18, 2008
    82
    0
    Convert the following decimal number in BCD code:

    29.35

    I have no idea how to do this one, i was told to use floating-point numbers but have no idea how to use it and if its the right method!

    Any help is greatly appreciated.
     
  2. Wendy

    Moderator

    Mar 24, 2008
    20,766
    2,536
    The decimal is what stumps me, the numbers can be converted straight into 4 separate digits. Maybe the answer is 4 separate strings of binary numbers separated by the decimal point?

    **************

    Just read the other post.

    4 bytes, each byte being 2 BCD numbers.

    The last two bytes are the exponent, similar to resistors. For example, a 2.2KΩ resistor is 223, or 22 X 10^3. Same thing in BCD use 4 bytes (which translates into 8 BCD numbers).
     
    Last edited: Mar 8, 2009
Loading...