Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid

Re: Extracting IEEE 754 floating point numbers

by RMGir (Prior)
on Oct 28, 2002 at 18:04 UTC ( #208566=note: print w/replies, xml ) Need Help??

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.

  • Comment on Re: Extracting IEEE 754 floating point numbers

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://208566]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (8)
As of 2018-10-16 08:25 GMT
Find Nodes?
    Voting Booth?
    When I need money for a bigger acquisition, I usually ...

    Results (83 votes). Check out past polls.