From e24321454c70134c2836bd44be882077b4a510ec Mon Sep 17 00:00:00 2001 From: PJ Fanning Date: Fri, 29 Apr 2022 22:50:38 +0000 Subject: [PATCH] support gcd function git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1900409 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/poi/ss/formula/functions/Gcd.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/poi/src/main/java/org/apache/poi/ss/formula/functions/Gcd.java b/poi/src/main/java/org/apache/poi/ss/formula/functions/Gcd.java index 6b6f051607..a77a7bd671 100644 --- a/poi/src/main/java/org/apache/poi/ss/formula/functions/Gcd.java +++ b/poi/src/main/java/org/apache/poi/ss/formula/functions/Gcd.java @@ -26,6 +26,19 @@ import org.apache.poi.ss.formula.eval.ValueEval; import java.util.ArrayList; + +/** + * Implementation for Excel GCD() function. + *

+ * Syntax:
GCD (number, ...)
+ *

+ *

+ * Returns the greatest common divisor of two or more integers. The greatest common divisor is the largest integer that divides both number1 and number2 without a remainder. + *

+ *

+ * See https://support.microsoft.com/en-us/office/gcd-function-d5107a51-69e3-461f-8e4c-ddfc21b5073a + *

+ */ public class Gcd implements FreeRefFunction { public static final Gcd instance = new Gcd(); -- 2.39.5