Investment Studio > Expressions > Functions > Math & Trig > GCD
integer gcd(integer data [, ...])
Returns the Greatest Common Divisor of two or more integers.
The greatest common divisor is the largest integer that divides all arguments without a remainder.
The input data may include arrays, in which case each array element will be treated as a separate argument.
Examples
=gcd(4, 6)
equals 2
=gcd({6, 9}, 18)
equals 3.
See also lcm.