Hexadecimal and binary

Discussion in 'Homework Help' started by arcsky, May 16, 2009.

  1. arcsky

    Thread Starter Member

    Apr 17, 2009
    12
    0
    Decimal 247,37 to hexadecimal I can only do
    from 247 to hexa like this:

    2*16^2 + 4*16^1 + 7*16^0 = 41.

    But .37 how to make that ?


    Also i wonder how to make decimal 0.37
    to binary code.

    Thanks for help
     
  2. PRS

    Well-Known Member

    Aug 24, 2008
    989
    35
    Use a negative exponent to make a decimal.
     
  3. vvkannan

    Active Member

    Aug 9, 2008
    138
    11
    To convert decimal to hexadecimal
    you have to divide by 16(so for 247 its f7) .
    To convert the decimal part multiply the decimal part by 16 and discard the decimal part.

    example:0.37 x 16 = 5.92 -> 5

    .92 x 16 = 14.72 -> e (for 14)
    so 5e.( continuing in a similar way you can get the answer for as many points as you want.)
     
  4. arcsky

    Thread Starter Member

    Apr 17, 2009
    12
    0
    F7.5EB gives F7.5F because B > 8
    Answer: F7.5F

    Why does teacher said F7.5F and not F7.5EB ?
    Please explain because i dont understand the decimal so well.
     
  5. hgmjr

    Moderator

    Jan 28, 2005
    9,030
    214
    There is some good material on Hex to Dec conversion in the AAC ebook at this link.

    hgmjr
     
Loading...