--- title: "max()" slug: "math-max" updated: 2026-08-13T13:15:18Z published: 2026-08-13T13:15:18Z canonical: "docs.lobstersoftware.com/math-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() This function returns the larger of the two numerical values **a** and **b** as a floating point value. A non-numerical value is interpreted as *0.0*. See examples below. ## Parameters | Parameter | Description | | --- | --- | | a | Numerical value | | b | Numerical value | ## Examples | Parameter a | Parameter b | Result | | --- | --- | --- | | 1 | 2 | 2 | | 2 | 1 | 2 | | 2 | 2 | 2 | | 7.1 | 7 | 7.1 | | abc | 7 | 7.0 |