gmp_sub
gmp_sub
Subtract numbers
GMP **gmp_sub** $num1 $num2
Subtracts from
and returns the result.
num2``num1
num1The number being subtracted from.
num2
The number subtracted from .
num1
gmp.return
Voorbeeld: example
<?php
$sub = gmp_sub("281474976710656", "4294967296"); // 2^48 - 2^32
echo gmp_strval($sub) . "\n";
?>
281470681743360