in reply to Converting binary to double precision
If you know that you are dealing with an x86 platform, this approach might work, but Perl is platform-independent. The binary representation of a floating point number among CPU-types is not the same. For that matter, there is more than one floating-point type available on a single CPU. The binary representation will vary considerably.