DocsFunctionsmathmath.Absmath.AbsReturns the absolute value of the given number.Syntaxmath.Abs VALUEReturnsfloat64{{ math.Abs -2.1 }} → 2.1 Last updated: January 22, 2025 : Remove expired new-in labels (fe10d9899)Improve this page