hex value ==> floating point value

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

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!!!!


Re: hex value ==> floating point value

Quoted text here. Click to load it

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 pivittyv nettisarjis
spam@outolempi.net | rot13(xvzzb@bhgbyrzcv.arg)  

Site Timeline