1.2.1524. ext/gmp¶
Extension ext/gmp.
These functions allow for arbitrary-length integers to be worked with using the GNU MP library.
<?php
$pow1 = gmp_pow('2', 131);
echo gmp_strval($pow1) . PHP_EOL;
$pow2 = gmp_pow('0', 0);
echo gmp_strval($pow2) . PHP_EOL;
$pow3 = gmp_pow('2', -1); // Negative exp, generates warning
echo gmp_strval($pow3) . PHP_EOL;
?>
See also GMP and GNU MP library.
1.2.1524.1. Specs¶
Short name |
Extensions/Extgmp |
Rulesets |
|
Exakat since |
0.8.4 |
PHP Version |
All |
Severity |
|
Time To Fix |
|
Precision |
Very high |
Available in |