gmp_rootrem

(PHP 5 >= 5.6.0, PHP 7)

gmp_rootremTake the integer part and remainder of nth root

説明

gmp_rootrem ( GMP $a , int $nth ) : array

Takes the nth root of a and returns the integer component and remainder of the result.

パラメータ

a

PHP 5.5 以前での GMP 数リソース、PHP 5.6 以降での GMP オブジェクト、あるいは数値に変換可能な数値形式の文字列。

nth

The positive root to take of a.

返り値

A two element array, where the first element is the integer component of the root, and the second element is the remainder, both represented as GMP numbers.