ILE COBOL Language Reference
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 *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.
Related Information
[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]
(C) Copyright IBM Corporation 1992, 2006. All Rights Reserved.