Skip to content

Commit 451c3ac

Browse files
committed
Add LeastCommonMultiple documentation
1 parent d71464e commit 451c3ac

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
@@ -1,6 +1,8 @@
11
Class Math.Math
22
{
33

4+
/// Accepts a variable number of parameters and outputs the Least Common Multiple of them</br>
5+
/// Null input and 0 are not valid
46
ClassMethod LeastCommonMultiple(pIntegers... As %Integer) As %Integer
57
{
68
Set tSC=##class(Math.Utils).ValidateInput(pIntegers...)
@@ -37,6 +39,7 @@ ClassMethod LeastCommonMultiple(pIntegers... As %Integer) As %Integer
3739
Quit tRes
3840
}
3941

42+
/// See <method>LeastCommonMultiple</method>
4043
ClassMethod LCM(pFactors...) As %Integer [ CodeMode = expression ]
4144
{
4245
##class(Math.Math).LeastCommonMultiple(pFactors...)

0 commit comments

Comments
 (0)