Connection Information

To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.

Connection Type

Fact – PB Docs 2022 – PowerBuilder Library

Fact – PB Docs 2022

Fact

PowerScript function

Description

Determines the factorial of a number.

Syntax

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):

Both these statements return 1:

See also

Fact method for DataWindows in the section called “Fact” in DataWindow Reference.


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x