The function FACT returns the factorial of a given Number.
This function takes a Number as input. It returns another Number: the factorial of the given Number.
Declaration
FACT(number) -> factorial
Parameters
number (required, type: Number
)
Any Number.
If given a Number that is not an integer, FACT will return the factorial of the given Number, rounded down to the nearest integer.
Return Values
number (type: Number
)
The factorial of the given Number.
Examples
The following example calculates the factorial of 4:
FACT(4) -> 24
If given a Number that is not an integer, FACT will return the factorial of the given Number, rounded down to the nearest integer. The following example demonstrates what happens if FACT is given 4.9 as input; note that the returned value is exactly the same as in the above example, when 4 was given as input:
FACT(4.9) -> 24