Query: gmp_perfect_square
OS: php
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
GMP_PERFECT_SQUARE(3) 1 GMP_PERFECT_SQUARE(3) gmp_perfect_square - Perfect square checkSYNOPSISbool gmp_perfect_square (GMP $a)DESCRIPTIONCheck if a number is a perfect square.PARAMETERSo $a - The number being checked as a perfect square. Either a GMP number resource in PHP 5.5 and earlier, a GMP object in PHP 5.6 and later, or a numeric string provided that it is possible to convert the latter to a number.RETURN VALUESReturns TRUE if $a is a perfect square, FALSE otherwise.EXAMPLESExample #1 gmp_perfect_square(3) example <?php // 3 * 3, perfect square var_dump(gmp_perfect_square("9")); // not a perfect square var_dump(gmp_perfect_square("7")); // 1234567890 * 1234567890, perfect square var_dump(gmp_perfect_square("1524157875019052100")); ?> The above example will output: bool(true) bool(false) bool(true)SEE ALSOgmp_sqrt(3), gmp_sqrtrem(3). PHP Documentation Group GMP_PERFECT_SQUARE(3)
Related Man Pages |
---|
class_alias(3) - php |
gmp_div_q(3) - php |
gmp_hamdist(3) - php |
gmp_init(3) - php |
is_float(3) - php |