[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
FT_AAVG()
Average numeric values in an array
------------------------------------------------------------------------------
Syntax
FT_AAVG( <aArray> [, <nStartIndex> [, <nEndIndex> ] ] ) -> nAverage
Arguments
<aArray> is the array containing the elements to be averaged.
<nStartIndex> is the first array item to include,
defaults to first element.
<nEndIndex> is the last array element to include,
defaults to all elements.
Returns
The average of the specified array elements.
Description
This function is used to get a numeric average of selected or all
elements of an array.
This routine requires FT_ASUM().
Examples
FT_AAVG(aSubTotals) // Get Average of Entire Array
FT_AAVG(aSubTotals, 5) // Get Average of 5th Element On
FT_AAVG(aSubTotals, , 10) // Get Average of 1st 10 Elements
FT_AAVG(aSubTotals, 5, 10) // Get Average of Elements 5-10
Source: AAVG.PRG
Author: David Husnian
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson