gmp_gcd

gmp_gcd

(PHP 4 >= 4.0.4, PHP 5, PHP 7)

gmp_gcdCalculate GCD

Description

GMP gmp_gcd ( GMP $a , GMP $b )

Calculate greatest common divisor of a and b. The result is always positive even if either of, or both, input operands are negative.

Parameters

a

Either a GMP number resource in PH