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
Portions of this website are copyright © 2001, 2002 The PHP Group
Page generated in 0.039 sec. using MySQL 8.4.7-u6-cloud
Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the
respective copyright holders.
It is not reviewed in advance
by Oracle and does not necessarily represent the opinion of
Oracle or any other party.