Public Function Fac( _ ByVal vX As Variant _ ) As Variant
IsNull(Fac(-1)) = True Fac(0) = 1 Fac(1) = 1 Fac(2) = 2 Fac(3) = 6 Fac(4) = 24 Fac(24) = 6.20448401733239E+23 Fac(170) = 7.25741561530888E+306 IsNull(Fac(171)) = TrueSee also:
Factorial Function Gamma Function Binom Function DFAC FunctionvX: Function returns Null if vX is Null or cannot be fixed up to a Double precision floating point number. vX is rounded to the nearest integer.
Copyright 1996-1999 Entisoft
Entisoft Tools is a trademark of Entisoft.