aboutsummaryrefslogtreecommitdiff
path: root/doc/eval.texi
diff options
context:
space:
mode:
authorStefano Sabatini2011-03-27 22:56:49 +0200
committerStefano Sabatini2011-04-05 15:34:16 +0200
commit25601bc5649fb71f645e9a619871cc85170f5dd8 (patch)
tree782350908d0bae27dd85bd5181d9c29e38c7c68b /doc/eval.texi
parentd1eb50bb29caad9745631759265f475177df99b9 (diff)
eval: add support for trunc, ceil, and floor functions
Signed-off-by: Stefano Sabatini <stefano.sabatini-lala@poste.it>
Diffstat (limited to 'doc/eval.texi')
-rw-r--r--doc/eval.texi12
1 files changed, 12 insertions, 0 deletions
diff --git a/doc/eval.texi b/doc/eval.texi
index 99cd034cdf..d0e04c0c3b 100644
--- a/doc/eval.texi
+++ b/doc/eval.texi
@@ -60,6 +60,18 @@ The function returns the loaded value.
Evaluate expression @var{expr} while the expression @var{cond} is
non-zero, and returns the value of the last @var{expr} evaluation, or
NAN if @var{cond} was always false.
+
+@item ceil(expr)
+Round the value of expression @var{expr} upwards to the nearest
+integer. For example, "ceil(1.5)" is "2.0".
+
+@item floor(expr)
+Round the value of expression @var{expr} downwards to the nearest
+integer. For example, "floor(-1.5)" is "-2.0".
+
+@item trunc(expr)
+Round the value of expression @var{expr} towards zero to the nearest
+integer. For example, "trunc(-1.5)" is "-1.0".
@end table
Note that: