|
gmp_div_qrDivide numbers and get quotient and remainder Description
array gmp_div_qr
( resource
$n
, resource $d
[, int $round = GMP_ROUND_ZERO
] )
The function divides Parameters
Return ValuesReturns an array, with the first element being [n/d] (the integer result of the division) and the second being (n - [n/d] * d) (the remainder of the division). Examples
Example #1 Division of GMP numbers
<?php See Also
|