summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortim@threads.polyesthetic.msg <>2001-04-05 15:21:19 -0400
committertim@threads.polyesthetic.msg <>2001-04-05 15:21:19 -0400
commit252ab34892dcf59a5befa4708e393680cd7063c9 (patch)
tree9f3312eceb9ce94d1943132a54c5cbf3591e5095
parente6765fdcc86cb7689e7725f6d5b581aaac250060 (diff)
downloadmariadb-git-252ab34892dcf59a5befa4708e393680cd7063c9.tar.gz
Clear up how ROUND() works (i.e., not the way you think).
-rw-r--r--BitKeeper/etc/logging_ok2
-rw-r--r--Docs/manual.texi7
2 files changed, 8 insertions, 1 deletions
diff --git a/BitKeeper/etc/logging_ok b/BitKeeper/etc/logging_ok
index 1c3bdac2b9f..6656b1b43ac 100644
--- a/BitKeeper/etc/logging_ok
+++ b/BitKeeper/etc/logging_ok
@@ -1 +1 @@
-heikki@donna.mysql.fi
+tim@threads.polyesthetic.msg
diff --git a/Docs/manual.texi b/Docs/manual.texi
index d30601fc3b7..db44051ecf5 100644
--- a/Docs/manual.texi
+++ b/Docs/manual.texi
@@ -16449,6 +16449,13 @@ mysql> select ROUND(1.58);
-> 2
@end example
+Note that the behavior of @code{ROUND()} when the argument
+is half way between two integers depends on the C library
+implementation. Some round to the nearest even number,
+always up, always down, or always towards zero. If you need
+one kind of rounding, you should use a well-defined function
+like @code{TRUNCATE()} or @code{FLOOR()} instead.
+
@findex ROUND()
@item ROUND(X,D)
Returns the argument @code{X}, rounded to a number with @code{D} decimals.