P
Paul
I have a hex number that I need to convert to a 32 bit float
eg 0x44361000 => 728.25 (from
http://sandbox.mc.edu/~bennet/cs110/flt/ftod.html)
Ive written some ugly code to do it, but Im sure there must be a nicer
way with pack/unpack/sprintf
I also need to go from floats to Hex too
Can any one help?
eg 0x44361000 => 728.25 (from
http://sandbox.mc.edu/~bennet/cs110/flt/ftod.html)
Ive written some ugly code to do it, but Im sure there must be a nicer
way with pack/unpack/sprintf
I also need to go from floats to Hex too
Can any one help?