Returns the greatest common divisor of two or more integers.
Ta funkcja działa w Arkuszach Google tak samo jak w Excelu — ta sama składnia i argumenty.
GCD(number1, [number2], ...)The GCD function calculates the largest positive integer that divides each of the provided numbers without a remainder. If any argument is non-numeric, the function returns the #VALUE! error value.
=GCD(12, 18)Wynik: 6
The largest number that divides both 12 and 18 is 6.
=GCD(24, 36, 48)Wynik: 12
The greatest common divisor for 24, 36, and 48 is 12.
The GCD function uses the absolute value of any negative number provided.