# LIST_STAT_MEDIAN

*LSL constant*

```lsl
integer LIST_STAT_MEDIAN = 4;
```

Constant groups: [ListStatisticsOperation](/constants/groups/ListStatisticsOperation/)

Calculates the median number in the list.

```lsl
float median = llListStatistics( LIST_STAT_MEDIAN, numList );
```

The median is the number for which half the values are less and half are greater. For example, the median of \[1,1,1,2,1000,1000,1000\] is 2, while the mean is 429.3.

## See also

### Functions

- [llListStatistics](/functions/llListStatistics/)

---

*Source: [LIST STAT MEDIAN](https://wiki.secondlife.com/wiki/LIST_STAT_MEDIAN) on the Second Life Wiki. Content from the Second Life Wiki article LIST STAT MEDIAN (revision 1194662, 2015-01-23), CC BY-SA 3.0.*

---

From lsl.dev: https://lsl.dev/constants/LIST_STAT_MEDIAN/
