HUGO
News Docs Themes Community GitHub

math.Max

Returns the greater of all numbers. Accepts scalars, slices, or both.

Syntax

math.Max VALUE...

Returns

float64
{{ math.Max 1 (slice 2 3) 4 }} → 4

Last updated: January 1, 0001
Improve this page