Skip to content

Commit b37cc69

Browse files
committed
Add Factorial documentation
1 parent 1a02fd2 commit b37cc69

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/cls/Math/Math.cls

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,8 @@ ClassMethod GCD(pFactors...) As %Integer [ CodeMode = expression ]
115115
##class(Math.Math).GreatestCommonDivisor(pFactors...)
116116
}
117117

118+
/// Accepts a single value and returns the factorial of that value</br>
119+
/// Only accepts range of -23 to +23
118120
ClassMethod Factorial(pValue = "") As %Integer
119121
{
120122
Set tSC=##class(Math.Utils).ValidateInput(pValue)

0 commit comments

Comments
 (0)