Skip to content

Commit 4971e94

Browse files
committed
Add GreatestCommonDivisor documenation
1 parent bb6dbb5 commit 4971e94

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/cls/Math/Math.cls

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,8 @@ ClassMethod Min(pIntegers...) As %Integer
7777
Quit tMin
7878
}
7979

80+
/// Accepts a variable number of parameters and outputs the Greatest Common Divisor of them</br>
81+
/// Null input and 0 are not valid
8082
ClassMethod GreatestCommonDivisor(pIntegers...) As %Integer
8183
{
8284
Set tRes=""
@@ -105,6 +107,7 @@ ClassMethod GreatestCommonDivisor(pIntegers...) As %Integer
105107
Quit tRes
106108
}
107109

110+
/// See <method>GreatestCommonDivisor</method>
108111
ClassMethod GCD(pFactors...) As %Integer [ CodeMode = expression ]
109112
{
110113
##class(Math.Math).GreatestCommonDivisor(pFactors...)

0 commit comments

Comments
 (0)