Previous Page | Next Page

Functions and CALL Routines

FACT Function



Computes a factorial.
Category: Mathematical

Syntax
Arguments
Details
Examples
See Also

Syntax

FACT(n)


Arguments

n

is a numeric constant, variable, or expression.


Details

The mathematical representation of the FACT function is given by the following equation:

[equation]

with n [ge] 0.

If the expression cannot be computed, a missing value is returned. For moderately large values, it is sometimes not possible to compute the FACT function.


Examples

SAS Statements Results
x=fact(5);
120


See Also

Functions:

COMB Function

PERM Function

LFACT Function

Previous Page | Next Page | Top of Page