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 settings | Max positive integer | Max negative integer |
---|---|---|
32-bit ints and double floats | 253 = 9,007,199,254,740,992 | -253 = -9,007,199,254,740,992 |
64-bit ints and double floats | 264-1 = 18,446,744,073,709,551,615 | -263 = 9,223,372,036,854,775,808 |
64-bit ints and quadruple floats | 2113 = 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