gmp_div_r
gmp_div_r
Remainder of the division of numbers
GMP **gmp_div_r** $num1 $num2 int $rounding_mode
Calculates remainder of the integer division of
by . The
remainder has the sign of the argument,
if not zero.
num1``num2``num1
num1The number being divided.
num2
The number that is being divided by.
num1
rounding_mode
See the function for description
of the argument.
gmp_div_q``rounding_mode
The remainder, as a GMP number.
Voorbeeld: example
<?php
$div = gmp_div_r("105", "20");
echo gmp_strval($div) . "\n";
?>
5
gmp_div_q``gmp_div_qr