From: PJ Fanning Date: Fri, 29 Apr 2022 22:50:38 +0000 (+0000) Subject: support gcd function X-Git-Tag: REL_5_2_3~332 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=e24321454c70134c2836bd44be882077b4a510ec;p=poi.git support gcd function git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1900409 13f79535-47bb-0310-9956-ffa450edef68 --- 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();