Rational Developer for System z
COBOL for Windows, Version 7.5, Language Reference


MEAN

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

The function type is numeric.

Format
Read syntax diagramSkip visual syntax diagram                     .------------.     
                     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

Copyright IBM Corporation 1996, 2008.
This information center is powered by Eclipse technology. (http://www.eclipse.org)