Bug #2493 | Round function doesn't work correctly | ||
---|---|---|---|
Submitted: | 23 Jan 2004 11:22 | Modified: | 2 Feb 2004 14:22 |
Reporter: | Paco O. | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server: User-defined functions ( UDF ) | Severity: | S3 (Non-critical) |
Version: | 4.0.16 | OS: | Windows (Windows) |
Assigned to: | Sergei Golubchik | CPU Architecture: | Any |
[23 Jan 2004 11:22]
Paco O.
[23 Jan 2004 20:03]
MySQL Verification Team
Serg I am assign you because I guess you already discussed this issue.
[2 Feb 2004 14:22]
Sergei Golubchik
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: There are different ways to round. MySQL simply calls libc round(). So the behaviour is defined by the underlying OS. In some implementations int+0.5 is rounder up, is others it is rounder to the closest even integer. SQL:2003 standard itself does not contain any ROUND() function.