Skip to main content
MedCalc
Mail a PDF copy of this page to:
(Your email address will not be added to a mailing list)
working
Show menu

FACT function

Description

Factorial function. FACT(n) returns the factorial of n. The factorial of a number n, n!, is equal to 1*2*3*...*n.

Factorial function$$ n! = \prod_{k=1}^n k $$

If the argument n is not an integer, it is trunctated.

The argument n cannot be negative.

If n is larger than 170, the function overflows and returns an error (consider using the GammaLn function for calculations).

Example

FACT(5) equals 120 (=1*2*3*4*5)

Calculator

FACT(  

Graph

FACT function

See also

External links