Posted by Kimmo Laine on 02/09/07 12:43
"Q" <dont@bother.com> wrote in message
news:45cc5a40$0$331$e4fe514c@news.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@bhgbyrzcv.arg)
Navigation:
[Reply to this message]
|