Returns the greatest common divisor of one or more integers.

Parameters

var_args_values Number (required) - Value(s) to consider to calculate the greatest common divisor.

Returns

Number

Examples

GCD(5, 9)

// returns 1
GCD(14, 21, 42)

// returns 7