Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?

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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (5)
As of 2018-07-18 12:27 GMT
Find Nodes?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?

    Results (392 votes). Check out past polls.