Bug #5182 | Problem with Floating Values comparision | ||
---|---|---|---|
Submitted: | 24 Aug 2004 14:30 | Modified: | 24 Aug 2004 16:20 |
Reporter: | Sivan Narayana | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server | Severity: | S1 (Critical) |
Version: | 4.23 | OS: | Linux (Linux) |
Assigned to: | CPU Architecture: | Any |
[24 Aug 2004 14:30]
Sivan Narayana
[24 Aug 2004 16:20]
MySQL Verification Team
It is not a bug. The above behavior is expected for floating-point comparison. You can use NUMERIC or DECIMAL column types to avoid this behavior. More info about floating-point comparison you can find in the MySQL manual at: http://dev.mysql.com/doc/mysql/en/Problems_with_float.html