in reply to Re: Unpacking Floating Point on architectures with different endians
in thread Unpacking Floating Point on architectures with different endians

tilly's response reminded me of a key tidbit that I read in perlpacktut:

Floating point Numbers

For packing floating point numbers you have the choice between the pack codes f and d which pack into (or unpack from) single-precision or double-precision representation as it is provided by your system. (There is no such thing as a network representation for reals, so if you want to send your real numbers across computer boundaries, you'd better stick to ASCII representation, unless you're absolutely sure what's on the other end of the line.)


Dave

  • Comment on Re: Re: Unpacking Floating Point on architectures with different endians