Bug #6251 | ROUND() Function does not always work correctly | ||
---|---|---|---|
Submitted: | 25 Oct 2004 19:33 | Modified: | 25 Oct 2004 22:38 |
Reporter: | Chris Calender | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server: User-defined functions ( UDF ) | Severity: | S3 (Non-critical) |
Version: | 4.0.20 | OS: | Linux (Linux/RH 9) |
Assigned to: | CPU Architecture: | Any |
[25 Oct 2004 19:33]
Chris Calender
[25 Oct 2004 22:38]
Hartmut Holzgraefe
Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.mysql.com/documentation/ and the instructions on how to report a bug at http://bugs.mysql.com/how-to-report.php Additional info: See the documentation on Round: http://dev.mysql.com/doc/mysql/en/Mathematical_functions.html#IDX1397 [...] Note that the behavior of ROUND() when the argument is halfway between two integers depends on the C library implementation. Different implementations round to the nearest even number, always up, always down, or always toward zero. If you need one kind of rounding, you should use a well-defined function such as TRUNCATE() or FLOOR() instead.