diff options
author | Chris Dennis <[email protected]> | 2020-02-24 22:45:04 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2020-02-24 23:45:04 +0100 |
commit | d184e5059c72c15df055192b01da0fd8c5b0fc5c (patch) | |
tree | 02cc841727b6b76fd57c852c8326153454f81811 /docs | |
parent | 322c285ba2f3aa95826fe2135646b4d35f4d2a30 (diff) | |
download | hugo-d184e5059c72c15df055192b01da0fd8c5b0fc5c.tar.gz hugo-d184e5059c72c15df055192b01da0fd8c5b0fc5c.zip |
tpl: Add math.Sqrt
Fixes #6941
Diffstat (limited to 'docs')
-rw-r--r-- | docs/content/en/functions/math.md | 5 |
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}}` → `3` | | `math.Floor` | Returns the greatest integer value less than or equal to the given number. | `{{math.Floor 1.9}}` → `1` | | `math.Round` | Returns the nearest integer, rounding half away from zero. | `{{math.Round 1.5}}` → `2` | +| `math.Log` | Returns the natural logarithm of the given number. | `{{math.Log 42}}` → `3.737` | +| `math.Sqrt` | Returns the square root of the given number. | `{{math.Sqrt 81}}` → `9` | + |