in reply to Re: packing a floating point
in thread packing a floating point
Without the ">", the output will be platform-dependent.
Of course, with it, it's perl version dependent :-)
$ perl -e'print pack "d>", -324978.08' Invalid type '>' in pack at -e line 1. $ perl -v This is perl, v5.8.8 built for i686-linux
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: packing a floating point
by BrowserUk (Patriarch) on Oct 21, 2010 at 13:17 UTC |