Fact

Description

Determines the factorial of a number.

Syntax

Fact ( n )

Argument

Description

n

The number for which you want the factorial

Returns

Double. Returns the factorial of n. If n is null, Fact returns null.

Examples

Example 1

This statement returns 24 (that is, 1 * 2 * 3 * 4):

Fact(4)

Example 2

Both these statements return 1:

Fact(1)


Fact(0)

See also