math.Min
Returns the smallest of all numbers. Accepts scalars, slices, or both.
- Syntax
- math.Min VALUE...
- Returns
- float64
Usage
The math.Min function returns the smallest of all numbers. Each argument can be a number or a slice of numbers.
Examples
{{ math.Min 3 1 5 }} → 1With numbers and slices:
{{ math.Min 1 (slice 2 3) 4 }} → 1Last updated:
October 21, 2026
:
content: Apply style guide to math functions (658ef2b60)
Improve this page