HUGO
News Docs Themes Community GitHub

math.Abs

Returns the absolute value of the given number.

Syntax

math.Abs VALUE

Returns

float64
{{ math.Abs -2.1 }} → 2.1

Last updated: January 1, 0001
Improve this page