← All docs

gmp_sqrtrem()

Integer square root and remainder.

gmp_sqrtrem()

function gmp_sqrtrem(object|string|int $num): array

Integer square root and remainder.

Parameters:

  • $num (object|string|int)

Returns: array

Availability

Compiled (AOT)Magician (eval)
AvailableAvailable

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

Internals

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