This content has been translated automatically. Click here to view the French version.
 Supported typesMean of durations WINDEV WEBDEV WINDEV Mobile Others .Average (Function) In french: .Mean Calculates the average of the elements of an array. Versions 18 and later This function is now available for iPhone/iPad applications.New in version 18 This function is now available for iPhone/iPad applications. This function is now available for iPhone/iPad applications.Versions 19 and later This function is now available for Windows Mobile applications.New in version 19 This function is now available for Windows Mobile applications. This function is now available for Windows Mobile applications.Versions 21 and later This function is now available in Apple Watch mode. This function is now available in Universal Windows 10 App mode.New in version 21 This function is now available in Apple Watch mode. This function is now available in Universal Windows 10 App mode. This function is now available in Apple Watch mode. This function is now available in Universal Windows 10 App mode.Versions 22 and later This function is now available in Android Widget mode. This function is now available for Android applications. This function is now available for Java applications.New in version 22 This function is now available in Android Widget mode. This function is now available for Android applications. This function is now available for Java applications. This function is now available in Android Widget mode. This function is now available for Android applications. This function is now available for Java applications.Versions 25 and later This function is now available in browser code.New in version 25 This function is now available in browser code. This function is now available in browser code.Example // Mean of elements found in an array of integers MyArray is array of int = [1,2,3]MyMean is numericMyAverage = MonTable.Mean() // MyAverage = 2 Syntax Calculating the mean of the elements found in a one-dimensional array (numeric types) = .Average() : DigitalMean of the numeric elements found in the array. : Control nameName of the one-dimensional array of numeric types containing the elements whose mean must be calculated. Calculating the mean of the elements found in a one-dimensional array (structured types) = .Average() : DigitalMean of values of members. : Control nameName of the one-dimensional array of structured types. The following structured types are allowed: class, dynamic class, structure, dynamic structure.Remark: In an array of dynamic classes or in an array of dynamic structures, the element is ignored if it is not allocated. : Character string (with or without quotes)Name of the member containing the values that must be used to calculate the mean. Calculating the mean of the elements found in a column of a two-dimensional array = .Average() : DigitalMean of column values. : Control nameName of the two-dimensional numeric array. : entierSubscript of the array column containing the values that must be used to calculate the mean.Remarks Supported typesThe following types are supported for the arrays of numeric values and for the members of arrays of structured types: all integer types (on 1, 2, 4 or 8 bytes, signed or unsigned + system integer).the real type (on 4 or 8 bytes), the currency type and the numeric type.the Date type.Mean of durationsIf .Average is used to calculate a sum of durations, all the parameters must have the Duration type.Business / UI classification: Neutral codeComponent: wd260wm.dll Minimum version required Version 24 This page is also available for…