array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'de', ), 'this' => array ( 0 => 'function.gmp-root.php', 1 => 'gmp_root', 2 => 'Take the integer part of nth root', ), 'up' => array ( 0 => 'ref.gmp.php', 1 => 'GMP Funktionen', ), 'prev' => array ( 0 => 'function.gmp-random-seed.php', 1 => 'gmp_random_seed', ), 'next' => array ( 0 => 'function.gmp-rootrem.php', 1 => 'gmp_rootrem', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/gmp/functions/gmp-root.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>

gmp_root

(PHP 5 >= 5.6.0, PHP 7, PHP 8)

gmp_rootTake the integer part of nth root

Beschreibung

gmp_root(GMP|int|string $num, int $nth): GMP

Takes the nth root of num and returns the integer component of the result.

Parameter-Liste

num

Ein GMP-Object, ein Integer oder eine Zeichenkette, die als Zahl interpretiert werden kann, wobei die gleiche Logik gilt, als ob die Zeichenkette in gmp_init() mit automatischer Erkennung der Basis verwendet würde (d. h. wenn base gleich 0 ist).

nth

The positive root to take of num.

Rückgabewerte

The integer component of the resultant root, as a GMP number.