On Tue, May 24, 2005 at 11:00:35PM +0200, Torsten Schoenfeld wrote:
> Aloha,
> 
> is there any way to reliably convert long longs (64bit integers) to SVs
> (and back) on 32bit platforms without losing information, and without
> compiling with -Duse64bitint?  Both, IV and NV don't seem to provide
> enough room to store large values.

Yes, they won't.

If your conversion is fully managed by you, then you could convert them to
and from strings using the appropriate C functions.

If the values have to work in perl space, then I think you'll need to look at
converting them to Math::BigInt objects.

Nicholas Clark

Reply via email to