Chapter Contents

Previous

Next
FACT

FACT



Computes a factorial and returns a value

Category: Mathematical


Syntax
Arguments
Details
Examples
See Also

Syntax

FACT(n)

Arguments

n
is an integer that represents the number of elements for which the factorial is computed.


Details

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

[IMAGE]

with n [ge] 0.

If the expression cannot be computed, a missing value is returned.


Examples

SAS Statements Result
x=fact(5);
120


See Also

Functions:
COMB
PERM


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.