Skip to main content

math.Min

Minimum of two numbers

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

Arguments

NameType
xfloat64
yfloat64

Example

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

Returns 10.