Fact
PowerScript function
Description
Determines the factorial of a number.
Syntax
|
1 |
Fact ( n ) |
|
Argument |
Description |
|---|---|
|
n |
The number for which you want the factorial |
Return value
Double.
Returns the factorial of n. If n is null, Fact returns null.
Examples
This statement returns 24 (that is, 1 * 2 * 3 * 4):
|
1 |
Fact(4) |
Both these statements return 1:
|
1 2 3 |
Fact(1) Fact(0) |
See also
Fact method for DataWindows in the section called “Fact” in DataWindow Reference.
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments
Oldest