Kurt D. Starsinic on Fri, 28 Jun 2002 12:59:40 -0400


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: Large integers


On Jun 28, Eric Roode wrote:
> Hello all,
> 
>     Can a Perl program tell whether it has 64-bit integers available
> to it, and modify its behavior accordingly?

    These will tell you how big your ints are (and could be):

        perl -V:use64bitint -V:use64bitall
        perl -V:longsize -V:d_longlong -V:longlongsize
        perl -V:ivtype -V:ivsize
        perl -MBit::Vector -e 'print Bit::Vector->Long_Bits'

    These will let you have 64-bit ints in Perl, regardless of your hardware:

        Bit::Vector (for exactly 64 bits)
        Math::BigInt (for at least 64 bits)
        Math::Pari (for anything you can imagine)

    - Kurt

**Majordomo list services provided by PANIX <URL:http://www.panix.com>**
**To Unsubscribe, send "unsubscribe phl" to majordomo@lists.pm.org**