FACTORIAL
The FACTORIAL function returns an integer that is the factorial of the argument specified.
The function type is integer.
Format >>-FUNCTION FACTORIAL--(--argument-1--)------------------------><
- argument-1
- argument-1 If the *NOEXTEND compiler option is in effect, then argument-1
must be an integer greater than or equal to zero and less than or equal to
28. If the *EXTEND31 compiler option is in effect, then argument-1 must be
an integer greater than or equal to zero and less than or equal to 29. If
the value of argument-1 is zero, the value 1 is returned; otherwise, its factorial
is returned.
If the *EXTEND31FULL or *EXTEND63 compiler option is in effect,
then argument-1 must be an integer greater than or equal to zero and less
than or equal to 49.
