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.