GMP gmp_perfect_power
(PHP 7 >= 7.3.0, PHP 8)
gmp_perfect_power — Perfect power check
설명
gmp_perfect_power(GMP|int|string $num
): bool
num
이 완전 거듭제곱인지 확인합니다.
매개변수
num
- GMP 개체, int 또는 숫자 문자열입니다.
반환 값
num
이 완전 거듭제곱이면 true
를 반환하고 그렇지 않으면 false
를 반환합니다.
기타
- gmp_perfect_square() - Perfect square check