DocsFunctionsmathmath.Summath.SumReturns the sum of all numbers. Accepts scalars, slices, or both.Syntaxmath.Sum VALUE...Returnsfloat64{{ math.Sum 1 (slice 2 3) 4 }} → 10 Last updated: February 17, 2025 : content: Miscellaneous edits (e098a7716)Improve this page