aboutsummaryrefslogtreecommitdiffstats
path: root/lib/stdlib/doc/src/math.xml
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2016-06-27 12:54:04 +0200
committerBjörn Gustavsson <[email protected]>2016-09-05 11:49:13 +0200
commit6d40cfd77f1d2f1e1403e4b41c0b53ae6499ea11 (patch)
tree774f51ba146c2b172b73bf778c6d8e820d0a0d9c /lib/stdlib/doc/src/math.xml
parent986d32a62b20c32338dac4dfd27c141c8f9be0fe (diff)
downloadotp-6d40cfd77f1d2f1e1403e4b41c0b53ae6499ea11.tar.gz
otp-6d40cfd77f1d2f1e1403e4b41c0b53ae6499ea11.tar.bz2
otp-6d40cfd77f1d2f1e1403e4b41c0b53ae6499ea11.zip
Add math:floor/1 and math:ceil/1
Add math:floor/1 and math:ceil/1 to avoid unnecessary conversions in floating point expressions. That is, instead of having to write float(floor(X)) as part of a floating point expressions, we can write simply math:floor(X).
Diffstat (limited to 'lib/stdlib/doc/src/math.xml')
-rw-r--r--lib/stdlib/doc/src/math.xml2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/stdlib/doc/src/math.xml b/lib/stdlib/doc/src/math.xml
index 1358ce5cbf..70ca6ae78e 100644
--- a/lib/stdlib/doc/src/math.xml
+++ b/lib/stdlib/doc/src/math.xml
@@ -57,9 +57,11 @@
<name name="atan" arity="1"/>
<name name="atan2" arity="2"/>
<name name="atanh" arity="1"/>
+ <name name="ceil" arity="1"/>
<name name="cos" arity="1"/>
<name name="cosh" arity="1"/>
<name name="exp" arity="1"/>
+ <name name="floor" arity="1"/>
<name name="log" arity="1"/>
<name name="log10" arity="1"/>
<name name="log2" arity="1"/>