Rational Developer for System z
Enterprise COBOL for z/OS, Version 4.1, Language Reference


MEAN

The MEAN function returns a numeric value that approximates the arithmetic average of its arguments.

The function type is numeric.

Read syntax diagramSkip visual syntax diagram
Format

                     .------------.      
                     V            |      
>>-FUNCTION MEAN--(----argument-1-+--)-------------------------><

argument-1
Must be class numeric.

The returned value is the arithmetic mean of the argument-1 series. The returned value is defined as the sum of the argument-1 series divided by the number of occurrences referenced by argument-1.


Terms of use | Feedback

This information center is powered by Eclipse technology. (http://www.eclipse.org)