> For the complete documentation index, see [llms.txt](https://docs.origami.tech/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.origami.tech/reference/grid-language/functions/median.md).

# median()

median() returns the middle value of a list of numbers, such as recent candle prices.

The Median function in Origami Tech identifies the central numeric value in a dataset, useful for trend smoothing and statistical modeling.

## `median`(*list*\[*decimal*]) -> *decimal*

Returns decimal

Compute the median of the given list elements

<details>

<summary>Example:</summary>

`median([2.2, 2.5, 5.5])` → `2.5`

</details>
