summaryrefslogtreecommitdiff
path: root/docsite
diff options
context:
space:
mode:
authorBrian Coca <brian.coca+git@gmail.com>2014-12-16 17:57:21 -0500
committerBrian Coca <brian.coca+git@gmail.com>2014-12-16 17:57:21 -0500
commitb07ce8b942d1d659257b0aebb6a17e1425e583d1 (patch)
treecd5b16521052922592edca63ba188e8b32db0a20 /docsite
parent6a3c26eb7022af5e78e23b44df738083d459a7a6 (diff)
downloadansible-b07ce8b942d1d659257b0aebb6a17e1425e583d1.tar.gz
removed redundant math functions as jinja2 provides abs() and round()
already
Diffstat (limited to 'docsite')
-rw-r--r--docsite/rst/playbooks_variables.rst10
1 files changed, 2 insertions, 8 deletions
diff --git a/docsite/rst/playbooks_variables.rst b/docsite/rst/playbooks_variables.rst
index a341fa44e7..c272f160a5 100644
--- a/docsite/rst/playbooks_variables.rst
+++ b/docsite/rst/playbooks_variables.rst
@@ -318,19 +318,11 @@ Math
--------------------
.. versionadded:: 1.9
-To get the absolute value of a number::
-
- {{ -23 | abs }}
To see if something is actually a number::
{{ myvar | isnan }}
-Rounding::
-
- {{ myvar | ceil }}
- {{ myvar | floor }}
-
Get the logarithm (default is e)::
{{ myvar | log }}
@@ -349,6 +341,8 @@ Square root, or the 5th::
{{ myvar | root }}
{{ myvar | root(5) }}
+Note that jinja2 already provides some like abs() and round().
+
.. _other_useful_filters: