physgreg has asked for the wisdom of the Perl Monks concerning the following question:
I am trying to extract a stream of numbers that are encoded (according to the specification of the product) in IEEE 754 format. I am attempting to use unpack to do this, with a 'f' template. However, the number I end up with is very different to the one I used as test data.
My set up is a proprietary application on Win2k (which I have no control over) sending these streams to some Perl code on Slackware 8.0. This code is modifyable by me.
What I would like to know is
1. Is there any way to confirm whether the Windows app is sending the right format (it should be)?
2. Is there any way of extracting this data (if the problem is that the native format on my platform is not IEEE 754).
Thanks!
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Extracting IEEE 754 floating point numbers
by Thelonius (Priest) on Oct 28, 2002 at 18:14 UTC | |
Re: Extracting IEEE 754 floating point numbers
by jmcnamara (Monsignor) on Oct 28, 2002 at 22:49 UTC | |
Re: Extracting IEEE 754 floating point numbers
by RMGir (Prior) on Oct 28, 2002 at 18:04 UTC | |
Re: Extracting IEEE 754 floating point numbers
by physgreg (Scribe) on Oct 29, 2002 at 09:32 UTC | |
by Thelonius (Priest) on Oct 29, 2002 at 12:50 UTC | |
by jmcnamara (Monsignor) on Oct 29, 2002 at 13:27 UTC | |
by physgreg (Scribe) on Oct 29, 2002 at 14:34 UTC |
Back to
Seekers of Perl Wisdom