fact(X)

Returns the factorial of a given value.

Syntax

fact(X)

Input

Argument Type Description
X integer or decimal The value on which to compute the factorial

X must be a whole number between 0 and 170.

Return Value

Returns a decimal number corresponding to the factorial of X.

If X is N/A or is not a whole number between 0 and 170, the result is N/A.

Sample Usage

<table cols="value">
  3;
  4;
  7;
  7.0;
  20;
  6.5;
  175;
  -4;
</table>
<willbe name="fact_example" value="fact(value)" format="width:30"/>