Fact

Description

Gets the factorial of a number.

Syntax

Fact ( n )

Argument

Description

n

The number for which you want the factorial


Return value

Double. Returns the factorial of n.

Examples

This expression returns 24:

Fact(4)

Both these expressions return 1:

Fact(1)
Fact(0)