# CT_FACT

``` FACT()
Computes the factorial
------------------------------------------------------------------------------
Syntax

FACT(<nValue>) --> nFactorial

Argument

<nValue>  Designates a value between 0 and 21.

Returns

FACT() returns the factorial of the specified value.

Description

FACT() computes the factorial of a value in the range of 0 to 21.  Since
results for factorials over 21 are too large, the function returns -1 to
indicate an error.

Examples

Show some factorials:

? FACT(1)         // Result: 1
? FACT(5)         // Result: 120
? FACT(21)        // Result: 51090942171709440000
? FACT(25)        // Result: -1 (Value too large !)
? FACT(0)         // Function returns 1```

# Tools — Mathematical Functions

```Introduction Mathematical Functions
ACOS()    Computes the cosine arc
ASIN()    Computes the sine arc
ATAN()    Computes the tangent arc
ATN2()    Computes the angle size from the sine and cosine
CEILING() Rounds up to the next integer
COS()     Computes the cosine
COT()     Computes the cotangent
DTOR()    Converts from a degree to radian measure
FACT()    Computes the factorial
FLOOR()   Rounds down to the next integer
FV()      Computes future value of capital
GETPREC() Determines the level of precision that is set
LOG10()   Computes the common logarithm
PAYMENT() Computes the periodic payment amount
PERIODS() Computes number of payment periods necessary to repay a loan
PI()      Returns pi with the highest degree of accuracy
PV()      Computes the cash present value after interest charges
RATE()    Computes the interest rate for a loan
RTOD()    Converts from a radian to degree measure
SETPREC() Sets the precision level for trigonometric functions
SIGN()    Determines the mathematical sign of a number
SIN()     Computes the sine of a radian value
TAN()     Computes the tangent of a radian value```