Bug #112759 Calculation on DOUBLE column return wrong result
| Submitted: | 18 Oct 2023 3:14 | Modified: | 18 Oct 2023 10:25 |
|---|---|---|---|
| Reporter: | George Ma (OCA) | Email Updates: | |
| Status: | Not a Bug | Impact on me: | |
| Category: | MySQL Server | Severity: | S2 (Serious) |
| Version: | 8.0.34 | OS: | Any |
| Assigned to: | CPU Architecture: | Any |
[18 Oct 2023 3:14]
George Ma
[18 Oct 2023 10:25]
MySQL Verification Team
Hi Mr. Ma, Thank you for your bug report. However, this is not a bug. 1.09 + 0.0.4 = 1.13. Regarding the result being 1.13000000000001, that is expected behaviour, according to IEEE standard floating point. If you want exact result, please use DECIMAL instead. 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.