hugo/docs/content/en/functions/math/Add.md
2024-02-07 20:46:41 +01:00

587 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