Skip to main content

math.Max

Maximum of two numbers

math.Max(x: float64, y: float64) -> float64

Arguments

NameType
xfloat64
yfloat64

Example

{{ math.Max(10, 20) }}

Returns 20.