Error getting tags :
error 404Error getting tags :
error 404 median | revDocs | RunRev
Welcome Guest (Log in)
Product Edition
Version
median
Basics
Expander triangle
Type
Function
Syntax
median(numbersList)
Introduced
1.1
Environment
Desktop, Web and Server
Platform Support
MacOS,Mac OS X,Windows,Linux
Security
None required
Summary
Returns the median (middle number) of a list of numbers.
Examples

median(6,22,8) -- returns 8
put median(incomeLevels) into field "2001 Median Income"

Additional Comments
Expander triangle

Use the median function to find the value that best represents a group of values.

Parameters:

The numbersList is a comma-separated list of numbers, or an expression that evaluates to such a list, or an array containing only numbers.

Value:

The median function returns a number.

Comments:

If the number of items in the numbersList is odd, the median function returns the middle value of the list when it is sorted in numeric order. If the number of items is even, the median function takes the two middle values and averages them to produce the median.

If the list consists of fewer than three numbers, or if the numbers are evenly distributed, the median is equal to the average.

User Comments
Expander triangle