Reference Guide > G Routines > GCD Function
  

GCD Function
Standard Library function that returns the greatest common divisor of some integers greater than 0.
Usage
result = GCD(i)
Input Parameters
iAn array of integers greater than 0.
Returned Value
result—An integer: the greatest common divisor of the integers i.
Keywords
None.
Examples
PM, GCD( [12,20,32] )
See Also
FACTOR, LCM, PRIME

Version 2017.1
Copyright © 2019, Rogue Wave Software, Inc. All Rights Reserved.