← All docs

gmp_sqrt()

Integer square root.

gmp_sqrt()

function gmp_sqrt(object|string|int $num): object

Integer square root.

Parameters:

  • $num (object|string|int)

Returns: object

Availability

Compiled (AOT)Magician (eval)
AvailableAvailable

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

Internals

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