in reply to Re^5: Exasperated with 64-bit integer builds of perl
in thread Exasperated with 64-bit integer builds of perl

I should have mentioned pack("Q", $string)

Doesn't seem to DWIM:
C:\_64>perl -e "$_=unpack('Q',pack('Q','1.44115188075868217e+017'));pr +int" 144115188075868224 C:\_64>
I believe it just packs the NV into the quad.

Cheers,
Rob

Replies are listed 'Best First'.
Re^7: Exasperated with 64-bit integer builds of perl
by Moron (Curate) on Jun 01, 2007 at 12:19 UTC
    Hmmm, then that leaves me with one last suggestion: Math::BigFloat and Math::BigInt.
    __________________________________________________________________________________

    ^M Free your mind!