summaryrefslogtreecommitdiff
path: root/doc/eval.texi
diff options
context:
space:
mode:
authorStefano Sabatini <stefano.sabatini-lala@poste.it>2011-04-09 13:49:54 +0200
committerAnton Khirnov <anton@khirnov.net>2011-04-10 09:24:21 +0200
commit5ae4251c3b603cc7f44dd0e0839c5b6f6bbac61e (patch)
tree22c45f3f3115c2880fb5c6af3b0502d2e911c193 /doc/eval.texi
parent2fd8756b9f5f5e809bec8f2635216f236106dff4 (diff)
eval: add support for trunc, ceil, and floor functions
Signed-off-by: Stefano Sabatini <stefano.sabatini-lala@poste.it> Signed-off-by: Anton Khirnov <anton@khirnov.net>
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 a989a373a6..d8c693f304 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: