AVG [ HP Business BASIC/XL Reference Manual ] MPE/iX 5.0 Documentation
HP Business BASIC/XL Reference Manual
AVG
The AVG function is a Report Writer function that returns the average
value of a Report Writer total. It returns the value of the TOTAL(Level,
Sequence)/NUMDETAIL(Level) functions. See those functions for further
detail.
Syntax
AVG(level,sequence)
Parameters
level The summary level number. It must be in the range [0,
9].
sequence Indicates which expression in the given TOTALS statement
should be returned. The first expression is sequence
number one. An error occurs if the sequence number is
less than one or greater than the number of expressions
in the totals statement.
Example
The following program segment calls the AVG function.
100 Level1=3
120 Sequence1=2
130 Average=AVG(Level1,Sequence1)
MPE/iX 5.0 Documentation