HP 3000 Manuals

FACTORIAL [ HP COBOL II/XL Quick Reference Guide ] MPE/iX 5.0 Documentation


HP COBOL II/XL Quick Reference Guide

FACTORIAL 

The FACTORIAL function returns an integer that is the factorial of
parameter-1.  The function type is integer.

Syntax 

     FUNCTION FACTORIAL (parameter-1)

Parameters 

parameter-1           Must be an integer greater than or equal to zero.
                      (The largest value parameter-1 can be is 20 in
                      order for the result to fit in 18 digits.)



MPE/iX 5.0 Documentation