Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to convert Hexa to Float from binary file

Status
Not open for further replies.

Kazendar

Programmer
Oct 23, 2008
18
LB
Please can you help me how to convert Hex values to Floating values ?

in some parts of a binary file, there are values such as in description below needs to be converted.

Hex: 84 9B CF 71 40 78 17 41
should become 384528.111 as floating decimal

----------------------------------------------
More details are as for the reference only.
Type: Double
Byte order: Little
Hex : 84 9B CF 71 40 78 17 41
Dec : 132 155 207 113 64 120 23 65
Double: 4.69034975511233E+18
Float : 384528.111143522
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top