← All docs

gmp_root()

Integer nth root.

gmp_root()

function gmp_root(object|string|int $num, int $nth): object

Integer nth root.

Parameters:

  • $num (object|string|int)
  • $nth (int)

Returns: object

Availability

Compiled (AOT)Magician (eval)
AvailableAvailable

No examples yet. Check examples/ and showcases/ for usage patterns.

Internals

For how gmp_root is implemented in the compiler, see the internals page.