gmp_perfect_square

PHP 4 >= 4.0.4, PHP 5, PHP 7, PHP 8
gmp_perfect_square - Perfect square check
Manual
Code Examples

gmp_perfect_square( GMP|int|string$num ): bool

Check if a number is a perfect square.

Parameters

num

The number being checked as a perfect square.

A GMP object, an int or a numeric string.

Return Values

Returns true if num is a perfect square, false otherwise.

Related Functions

Example of gmp_perfect_square

Show all examples for gmp_perfect_square

PHP Version: