We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bb6dbb5 commit 4971e94Copy full SHA for 4971e94
1 file changed
src/cls/Math/Math.cls
@@ -77,6 +77,8 @@ ClassMethod Min(pIntegers...) As %Integer
77
Quit tMin
78
}
79
80
+/// Accepts a variable number of parameters and outputs the Greatest Common Divisor of them</br>
81
+/// Null input and 0 are not valid
82
ClassMethod GreatestCommonDivisor(pIntegers...) As %Integer
83
{
84
Set tRes=""
@@ -105,6 +107,7 @@ ClassMethod GreatestCommonDivisor(pIntegers...) As %Integer
105
107
Quit tRes
106
108
109
110
+/// See <method>GreatestCommonDivisor</method>
111
ClassMethod GCD(pFactors...) As %Integer [ CodeMode = expression ]
112
113
##class(Math.Math).GreatestCommonDivisor(pFactors...)
0 commit comments