Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

IEEE 754 32 bit Hexadecimal to decimal conversion

843785Jul 18 2008 — edited Jul 18 2008
Hi,

I have an interesting problem at hand to convert IEEE 754 32 bit Hexadecimal to decimal. For example if i have 48C35000 in Hexadecimal format need to convert it to decimal which will have a resulting value of 400000.0, so on and so forth.

I have this nice applet that does the conversion for me http://www.h-schmidt.net/FloatApplet/IEEE754.html. Some more information regardring IEEE 754 formats at http://en.wikipedia.org/wiki/IEEE_754

However i need to code this and include it in my application where i will receive the value of 48C35000 from a sensor and need to display 400000.0 on the UI. Please help with any suggestions/ideas or pointers to code snippets.

Thank you for your time.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 15 2008
Added on Jul 18 2008
5 comments
4,840 views