FAC |
fac calculates an integer's factorial.
fac(ent_exp)
|
Element |
Description |
Restrictions |
|
ent_exp |
Whole Number |
0 <= ent_exp <= 58 |
SEIZE = fac(16) / fac(15)
CNP1 = fac(N) / (fac(P) * fac(N-P))
fac(N) returns N*(N-1)*(N-2)* ... *2*1
Conventionally, fac(0) = 1.
The type of result is Integer or Decimal depending on whether the result is less or greater than 2^31-1.
|
Error |
Description |
|
ERMODE (10) |
ent_exp is not numeric. |
|
ERDOM (50) |
ent_exp is outside of the domain (not an integer, for example). |
|
ERHUGE (13) |
ent_exp is greater than or equal to 58. |
|
|