From 34c419ef323a423ca1ec0afaba6be281a6670f45 Mon Sep 17 00:00:00 2001 From: Chris Dennis Date: Mon, 24 Feb 2020 22:45:04 +0000 Subject: [PATCH] tpl: Add math.Sqrt Fixes #6941 --- content/en/functions/math.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/content/en/functions/math.md b/content/en/functions/math.md index eb38fdd0b..29fe16985 100644 --- a/content/en/functions/math.md +++ b/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` | +