GMP_ROOT(3) 1 GMP_ROOT(3)
gmp_root - Take the integer part of nth root
SYNOPSIS
GMP gmp_root (GMP $a, int $nth)
DESCRIPTION
Takes the $nth root of $a and returns the integer component of the result.
PARAMETERS
o $a
-Either a GMP number resource in PHP 5.5 and earlier, a GMP object in PHP 5.6 and later, or a numeric string provided that it is
possible to convert the latter to a number.
o $nth
- The positive root to take of $a.
RETURN VALUES
The integer component of the resultant root, as a GMP number.
PHP Documentation Group GMP_ROOT(3)