MySQL Forums
Forum List  »  General

Re: Percona MySQL 5.5 and 5.6 IFNULL function changes float data precision
Posted by: Peter Brawley
Date: November 27, 2018 12:07PM

All I see is normal float rounding junk ...

select f1,f2,ifnull(f1,f2) from testfloat;
+--------+--------+-----------------------+
| f1     | f2     | ifnull(f1,f2)         |
+--------+--------+-----------------------+
| 0.0052 |   NULL |  0.005200000014156103 |
|   NULL | 0.0032 | 0.0031999999191612005 |
+--------+--------+-----------------------+

Usually we hide such with Round().

Options: ReplyQuote




Sorry, only registered users may post in this forum.

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.