http://www.perlmonks.org?node_id=208566


in reply to Extracting IEEE 754 floating point numbers

Interesting... You're right, it should work; Intel's FP format is IEEE 754 compatible as far as I know.

Did you try writing a simple C/C++ program on your Linux box to read the data in one double at a time and see what the it shows up as? That could help you see if the unpack 'f' conversion is the problem or not...

It could also be interesting to see what running the perl code with unpack gives when run on the Win2k box with ActiveState's perl...

But I'd expect them all to give the same result, offhand... I'm probably wrong, though, given what you've seen already. But maybe the results from these tests will give you hints as to where the problem lies.
--
Mike

  • Comment on Re: Extracting IEEE 754 floating point numbers