Wednesday, August 7, 2013

Perl 에서 maximum value of a scalar

maximum value of a scalar

For 32-bit version of Perl, the maximum integer (without using bigint or similar) that can be stored precisely is -253 on the negative side and 253 on the positive side.

    build settingsMax positive integerMax negative integer
    32-bit ints and double floats253 = 9,007,199,254,740,992-253 = -9,007,199,254,740,992
    64-bit ints and double floats264-1 = 18,446,744,073,709,551,615-263 = 9,223,372,036,854,775,808
    64-bit ints and quadruple floats2113 = 10,384,593,717,069,655,257,060,992,658,440,192-2113 = -10,384,593,717,069,655,257,060,992,658,440,192

No comments:

Post a Comment