Determines the factorial of a number.
Fact ( n )
Argument |
Description |
---|---|
n |
The number for which you want the factorial |
Double. Returns the factorial of n. If n is null, Fact returns null.
This statement returns 24 (that is, 1 * 2 * 3 * 4):
Fact(4)
Both these statements return 1:
Fact(1)
Fact(0)
Fact method for DataWindows in the DataWindow Reference or online Help