Joe Mooring 69d7a781b4 Replace links to glossary terms with custom render hook syntax
For example: [scalar](/getting-started/glossary/#scalar) => [scalar](g)
2025-01-20 00:26:38 -08:00

545 B

title description categories keywords action
math.Add Adds two or more numbers.
aliases related returnType signatures
add
functions/math/Div
functions/math/Mul
functions/math/Product
functions/math/Sub
functions/math/Sum
any
math.Add VALUE VALUE...

If one of the numbers is a float, the result is a float.

{{ add 12 3 2 }} → 17

You can also use the add function to concatenate strings.

{{ add "hu" "go" }} → hugo