|
PHP5中文手册
gmp_div_qr(PHP 4 >= 4.0.4, PHP 5) gmp_div_qr — Divide numbers and get quotient and remainder 说明
array gmp_div_qr
( resource $n
, resource $d
[, int $round
] )
The function divides n by d . 参数
返回值Returns 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). 范例
Example#1 Division of GMP numbers
<?php |