MindFusion.Wpf Pack Programmer's Guide
FACT

Returns the factorial of the specified number.

Syntax  Copy Code

FACT( Integer x ) Number

Parameters

x
Required. The number to calculate factorial of. Must be non-negative.

Remarks

The factorial of a number is the product of all integer numbers from 1 to the number itself. That is, the factorial of x is 1*2*3**x. The factorial of zero is, by definition, 1.

If x is not integer, it is automatically truncated. If x is less than zero, the function returns the #NUM! error value.

Example

Formula  Copy Code

=FACT(0)
=FACT(5)

See Also

Function Reference
FACTDOUBLE Function
PRODUCT Function