Debian Codegraph @

docs/content/en/functions/math/Sub.md

raw
1 ---
2 title: math.Sub
3 description: Returns the result of subtracting one or more numbers from the first number.
4 categories: []
5 keywords: []
6 params:
7 functions_and_methods:
8 aliases: [sub]
9 returnType: any
10 signatures: [math.Sub VALUE VALUE...]
11 ---
12
13 If one of the numbers is a [`float`](g), the result is a `float`.
14
15 ```go-html-template
16 {{ sub 12 3 2 }} → 7
17 ```