math.Add
Adds two or more numbers.
Syntax
math.Add VALUE VALUE...
Returns
any
Alias
add
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
Last updated:
January 19, 2025
:
Replace links to glossary terms with custom render hook syntax (69d7a781b)
Improve this page