Bug #112757 Comparison on FLOAT column return wrong result
| Submitted: | 18 Oct 2023 1:53 | Modified: | 18 Oct 2023 10:19 |
|---|---|---|---|
| Reporter: | George Ma (OCA) | Email Updates: | |
| Status: | Not a Bug | Impact on me: | |
| Category: | MySQL Server | Severity: | S3 (Non-critical) |
| Version: | 8.0.34 | OS: | Any |
| Assigned to: | CPU Architecture: | Any |
[18 Oct 2023 1:53]
George Ma
[18 Oct 2023 10:19]
MySQL Verification Team
Hi Mr. Ma, Thank you for your bug report. However, this is not a bug. It is a very well known fact that IEEE floating point types can not be compared for equality. Not even with 0.0, as IEEE also has -0.0. This is also described in our Reference Manual. If you need equality, try DECIMAL type. Not a bug.
Portions of this website are copyright © 2001, 2002 The PHP Group
Page generated in 0.049 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.