<-- Previous || Up || Next -->

Fac Function
Math Engineering Class

Public Function Fac( _
    ByVal vX As Variant _
    ) As Variant

Compute the factorial function.

Examples:
    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)) = True
See also:
    Factorial Function
    Gamma Function
    Binom Function
    DFAC Function
vX: 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.