--- title: "max (Maximum)" slug: "calc-function-max" updated: 2026-05-12T12:58:36Z published: 2026-05-12T12:58:36Z canonical: "docs.lobstersoftware.com/calc-function-max" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.lobstersoftware.com/llms.txt > Use this file to discover all available pages before exploring further. # max (Maximum) $max calculates the maximum from a list of values. > [!NOTE] > $max calculates the maximum from a list of values. > > > [!TIP] > > Tooltip > > > > Syntax: *$max(a[,b[,c[...]]])* > > > > | Parameter | Description | > > | --- | --- | > > | `a` | A value (e.g. "5"), a list (e.g. $el(3,true)) or a reference to a value (e.g.: $el(3)). | > > | `other parameters` | Other numeric values of type a. | > > > > Returns the numerically largest value in the list of parameters. > > > > Example: $max(5,-6,3) – returns 5 ## Syntax *$max(a [, b[, c[...]]])* ## Parameter | Name | Description | | --- | --- | | a | A value (e.g. " 5 "), a list (e.g. $el(3,true) ) or a reference to a value (e.g. $el(3) ). | | Other parameters | Other numeric values of type a. | ## Return value The numerically largest value in the list of parameters. ## Example | Syntax | Result | | --- | --- | | $max(2, 5, 7) $max($el( 28, true) ) | 7 The numerically largest value of the elements of the repeating element with the Id 28. |