Bug #2663 | FORMAT() function rounding inconsistently | ||
---|---|---|---|
Submitted: | 6 Feb 2004 8:08 | Modified: | 6 Feb 2004 9:11 |
Reporter: | Nathan Cassano | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server | Severity: | S3 (Non-critical) |
Version: | MySQL-3.23.56-1 | OS: | Linux (Linux 2.4.20-20.7) |
Assigned to: | Sergei Golubchik | CPU Architecture: | Any |
[6 Feb 2004 8:08]
Nathan Cassano
[6 Feb 2004 9:11]
Sergei Golubchik
it's not a bug, but an intrinsic property of a limited-precision representation of a real numbers. See, for example: % perl -e 'printf "%.2f %.2f %.2f %.2f\n", 0.005, 1.005, 7.005, 8.005' 0.01 1.00 7.00 8.01