in reply to Unpacking extended-double precision floats
If your Perl supports extended double precision floats natively, then you can unpack them using the D pack code. Quoting pack's documentation, D is used to pack/unpack the following:
A long double-precision float in the native format. (Long doubles are available only if your system supports long double values _and_ if Perl has been compiled to support those. Causes a fatal error otherwise.)
Otherwise, I'm curious as to what you're expecting to get. Are you expecting a double, a string or a Math::BigFloat?
If you can read those floats in C, one solution would be to write a conversion routine in C and call it via XS or Inline::C.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Unpacking extended-double precision floats
by herveus (Prior) on Nov 29, 2006 at 18:24 UTC | |
by ikegami (Patriarch) on Nov 29, 2006 at 18:43 UTC | |
by Anonymous Monk on Nov 29, 2006 at 20:31 UTC | |
by herveus (Prior) on Nov 30, 2006 at 12:35 UTC | |
by Fengor (Pilgrim) on Nov 30, 2006 at 13:08 UTC | |
| |
by herveus (Prior) on Nov 29, 2006 at 18:48 UTC |