summaryrefslogtreecommitdiffstats
path: root/docs/content
diff options
context:
space:
mode:
authorChris Dennis <ssa@fbcs.co.uk>2020-02-24 22:45:04 +0000
committerGitHub <noreply@github.com>2020-02-24 23:45:04 +0100
commitd184e5059c72c15df055192b01da0fd8c5b0fc5c (patch)
tree02cc841727b6b76fd57c852c8326153454f81811 /docs/content
parent322c285ba2f3aa95826fe2135646b4d35f4d2a30 (diff)
tpl: Add math.Sqrt
Fixes #6941
Diffstat (limited to 'docs/content')
-rw-r--r--docs/content/en/functions/math.md5
1 files changed, 4 insertions, 1 deletions
diff --git a/docs/content/en/functions/math.md b/docs/content/en/functions/math.md
index eb38fdd0b..29fe16985 100644
--- a/docs/content/en/functions/math.md
+++ b/docs/content/en/functions/math.md
@@ -4,7 +4,7 @@ description: Hugo provides nine mathematical operators in templates.
godocref:
date: 2017-02-01
publishdate: 2017-02-01
-lastmod: 2017-02-01
+lastmod: 2020-02-23
keywords: [math, operators]
categories: [functions]
menu:
@@ -36,3 +36,6 @@ aliases: []
| `math.Ceil` | Returns the least integer value greater than or equal to the given number. | `{{math.Ceil 2.1}}` &rarr; `3` |
| `math.Floor` | Returns the greatest integer value less than or equal to the given number. | `{{math.Floor 1.9}}` &rarr; `1` |
| `math.Round` | Returns the nearest integer, rounding half away from zero. | `{{math.Round 1.5}}` &rarr; `2` |
+| `math.Log` | Returns the natural logarithm of the given number. | `{{math.Log 42}}` &rarr; `3.737` |
+| `math.Sqrt` | Returns the square root of the given number. | `{{math.Sqrt 81}}` &rarr; `9` |
+