Fact

Description

Gets 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.

Examples

Example 1

This expression returns 24:

Fact(4)

Example 2

Both these expressions return 1:

Fact(1)
Fact(0)

See also