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 | 
|---|
| gmp_div_r(3) - php | 
| gmp_hamdist(3) - php | 
| gmp_prob_prime(3) - php | 
| gmp_setbit(3) - php | 
| mysqlnd_ms_match_wild(3) - php | 
| Similar Topics in the Unix Linux Community | 
|---|
| Simple rules of the UNIX.COM forums: | 
| User Guide: Posting in the Emergency Forum | 
| UNIX.COM 2017 Year End Summary | 
| Coming Soon: Upgrade Forum Software (Dec 31 - Jan 1) |