By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,636 Members | 1,784 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,636 IT Pros & Developers. It's quick & easy.

hex value ==> floating point value

P: n/a
Q
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
Feb 9 '07 #1
Share this Question
Share on Google+
1 Reply


P: n/a
"Q" <do**@bother.comwrote in message
news:45*********************@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
sp**@outolempi.net | rot13(xv***@bhgbyrzcv.arg)
Feb 9 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.