Bug #47049 | Boundaries are included in result when using a float in a range (< or >) | ||
---|---|---|---|
Submitted: | 1 Sep 2009 17:10 | Modified: | 1 Sep 2009 22:03 |
Reporter: | Sheeri Cabral (Candidate Quality Contributor) | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server: DML | Severity: | S3 (Non-critical) |
Version: | 5.1.35, 4.1, 5.0, 5.1, 5.4 bzr | OS: | Any (SunOS 5.10 Generic_138889-02 i86pc i386 i86pc) |
Assigned to: | CPU Architecture: | Any | |
Tags: | <, >, boundary, FLOAT, qc, range |
[1 Sep 2009 17:10]
Sheeri Cabral
[1 Sep 2009 20:33]
Sveta Smirnova
Thank you for the report. Verified as described. Really this can be considered as not a bug, because float values are not expected to be precise, but this case with boundaries can be fixed.
[1 Sep 2009 20:33]
Sveta Smirnova
Workaround: use DECIMAL
[1 Sep 2009 22:03]
Sergei Golubchik
not a bug. see http://dev.mysql.com/doc/refman/5.1/en/problems-with-float.html