> 07.01.2019, 22:17, "Legale.legale" <legale.leg...@gmail.com>: > I think your solution by changing precision is not good enough because float > summation is still not working properly. > > <?php > var_dump(0.1 + 0.7); > > returns: > > 0.7999999999 > > expected: 0.8 >
Hi! If you are about the proposal, then '0.1 + 0.7 !== 0.8'. Why you expected 0.8? Check, plz: https://3v4l.org/Ughn2 -- Semen V. Dubina https://sam002.net/ -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php