|
PHP5中文手册
gmp_sqrtrem(PHP 4 >= 4.0.4, PHP 5) gmp_sqrtrem — Square root with remainder 说明
array gmp_sqrtrem
( resource $a
)
Calculate the square root of a number, with remainder. 参数
返回值Returns array where first element is the integer square root of a and the second is the remainder (i.e., the difference between a and the first element squared). 范例
Example#1 gmp_sqrtrem() example
<?php 上例将输出:
|