Fact PowerScript function
Description
Determines the factorial of a number.
Syntax
|
1 |
<span>Fact</span> ( <span>n</span> ) |
|
Argument |
Description |
|---|---|
|
n |
The number for which you want the factorial |
Return Values
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 |
<span>Fact</span>(4) |
Both these statements return 1:
|
1 |
<span>Fact</span>(1) |
|
1 |
|
1 |
<span>Fact</span>(0) |
See Also
-
Fact method
for DataWindows in the DataWindow Reference or
online Help
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments
Oldest