1
0
Fork 0
hugo/docs/content/en/functions/math/Add.md

24 lines
436 B
Markdown

---
title: math.Add
description: Adds two or more numbers.
categories: []
keywords: []
params:
functions_and_methods:
aliases: [add]
returnType: any
signatures: [math.Add VALUE VALUE...]
---
If one of the numbers is a [`float`](g), the result is a `float`.
```go-html-template
{{ add 12 3 2 }} → 17
```
You can also use the `add` function to concatenate strings.
```go-html-template
{{ add "hu" "go" }} → hugo
```