gmp_sqrt

PHP 4 >= 4.0.4, PHP 5, PHP 7, PHP 8
gmp_sqrt - Calculate square root
Manual
Code Examples

gmp_sqrt( GMP|int|string$num ): GMP

Calculates square root of num.

Parameters

num

A GMP object, an int or a numeric string.

Return Values

The integer portion of the square root, as a GMP number.

Example of gmp_sqrt

Show all examples for gmp_sqrt

PHP Version: