Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
252ab348
Commit
252ab348
authored
Apr 05, 2001
by
tim@threads.polyesthetic.msg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clear up how ROUND() works (i.e., not the way you think).
parent
e6765fdc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletion
+8
-1
BitKeeper/etc/logging_ok
BitKeeper/etc/logging_ok
+1
-1
Docs/manual.texi
Docs/manual.texi
+7
-0
No files found.
BitKeeper/etc/logging_ok
View file @
252ab348
heikki@donna.mysql.fi
tim@threads.polyesthetic.msg
Docs/manual.texi
View file @
252ab348
...
...
@@ -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.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment