← All docs

gmp_rootrem()

Integer nth root and remainder.

gmp_rootrem()

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

Integer nth root and remainder.

Parameters:

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

Returns: array

Availability

Compiled (AOT)Magician (eval)
AvailableAvailable

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

Internals

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