I am trying to create a float
from a hexadecimal representation I got from here. For the representation of 32.50002
, the site shows the IEEE 754 hexadecimal representation as 0x42020005
.
In my code, I have this: float f = 0x42020005;
. However, when I print the value, I get 1.10E+9
instead of 32.50002
. Why is this?
I am using Microsoft Visual C++ 2010.