|Perl: the Markov chain saw|
Extracting IEEE 754 floating point numbersby physgreg (Scribe)
|on Oct 28, 2002 at 17:31 UTC||Need Help??|
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).