> 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/max.md).

# max()

max() returns the largest of the values passed to it. Useful for setting minimum prices and volumes in grid formulas.

The Max function in Origami Tech identifies the largest numeric value from inputs, useful for conditional checks and dynamic trading calculations.

## `max`(*tuple*\[*decimal*,...]) -> *decimal*

Returns max value from provided parameters

<details>

<summary>Example:</summary>

`max(0.1, 0.2)` → `0.2`

</details>
