in reply to Extracting IEEE 754 floating point numbers
You can compare this with the output of
Updated:The most likely error is byte order. For portability, your application is most likely storing the bytes in network order, but the Intel native format is little-endian. For 32-bit quantities (including single-precision floating point, you should be able to load them like this:print unpack "H*", pack "f*", 1, 1, 1, 1, 1.5, 1.5
@floats = unpack "f*", pack "N*", unpack "V*", $floatingpointdata;
|
|---|