FACTORIAL (factorial of a number)

Top  Previous  Next

 

FACTORIAL(number)

FACTORIAL

Computes the factorial of a number.

number

A numeric constant or variable containing a positive integer value.

 

The FACTORIAL function implements the standard factorial formula. For example, if the number provided is 5 then the function returns the value of: (1 x 2 x 3 x 4 x 5) = 120.

 

Return DataType:     REAL

Example:

 

X = 5

FactorialOfX = FACTORIAL(X)     !call FACTORIAL