|
gmp_div_qrDivide numbers and get quotient and remainder Beschreibung
array gmp_div_qr
( GMP
$n
, GMP $d
[, int $round = GMP_ROUND_ZERO
] )
The function divides Parameter-Liste
RückgabewerteReturns 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). Beispiele
Beispiel #1 Division of GMP numbers
<?phpSiehe auch
|