hugo/content/en/functions/math/Add.md
Bjørn Erik Pedersen 6efb279bfa Squashed 'docs/' changes from 5c085a37b..a9584e3d1
a9584e3d1 ci: bump GitHub workflow actions to latest versions
f37ee374d Fix methods related to time.After
a49214057 Correct heading render hook example
4b696f936 Update README.md
b5a6e4039 Clean up the contributing section
a5d79ed19 Fixed typo: instea → instead
6150a60e3 Remove the "local file templates" page
9395743dc Update/vendor theme
33d8c10cc Remove output format "name" parameter
7200ad97d Add security section to resources.GetRemote page
3f1e056b2 Remove erroneous front matter field
07c9a7e42 Add alpha index to glossary
6619c8aa0 Fix Page.Params example
145a92359 Simplify string concat example in math.Add
42488bb09 Add string concat example to math.Add
eb20521a2 Fix flash of unstyled content with mathematical markup
74603bebe Fix typo in 'typesetting'

git-subtree-dir: docs
git-subtree-split: a9584e3d146c4a194d937a4dc8a37cde5ba1c618
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