hex value ==> floating point value

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Q

    hex value ==> floating point value

    Question:

    For our GPS application I need to convert the minutes part (heximal value)
    to a decimal/floating point value.

    So: 41609218 (4 bytes) has to be converted to: 14.034 (approx)

    (format of the float is IEEE-754 )

    Thanx in advance for any help!!!!



    Quarco


  • Kimmo Laine

    #2
    Re: hex value ==> floating point value

    "Q" <dont@bother.co mwrote in message
    news:45cc5a40$0 $331$e4fe514c@n ews.xs4all.nl.. .
    Question:
    >
    For our GPS application I need to convert the minutes part (heximal value)
    to a decimal/floating point value.
    >
    So: 41609218 (4 bytes) has to be converted to: 14.034 (approx)
    >
    (format of the float is IEEE-754 )
    >
    Thanx in advance for any help!!!!
    You could try pack/unpack, they might be useful in this case.

    --
    "Ohjelmoija on organismi joka muuttaa kofeiinia koodiksi" - lpk
    http://outolempi.net/ahdistus/ - Satunnaisesti päivittyvä nettisarjis
    spam@outolempi. net | rot13(xvzzb@bhg byrzcv.arg)


    Comment

    Working...