| Bug #25619 | Rounding error in SUM on column type FLOAT | ||
|---|---|---|---|
| Submitted: | 15 Jan 2007 5:42 | Modified: | 15 Jan 2007 9:52 |
| Reporter: | Peter Tebault | Email Updates: | |
| Status: | Not a Bug | Impact on me: | |
| Category: | MySQL Server: General | Severity: | S1 (Critical) |
| Version: | 5.0.27-community | OS: | Windows (XP Pro) |
| Assigned to: | CPU Architecture: | Any | |
[15 Jan 2007 5:42]
Peter Tebault
[15 Jan 2007 9:52]
Sveta Smirnova
Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://dev.mysql.com/doc/ and the instructions on how to report a bug at http://bugs.mysql.com/how-to-report.php Please read about Problems with Floating-Point Comparisons at http://dev.mysql.com/doc/refman/5.0/en/problems-with-float.html Also read http://dev.mysql.com/doc/refman/5.0/en/no-matching-rows.html
[13 Mar 2008 15:55]
Dave Schlaegel
If what you are trying to do is have a 2 char float as the result just use something like: select round(sum(a),2) from a; ---------------------------- Thanks, Dave Schlaegel
