Edit report at https://bugs.php.net/bug.php?id=66011&edit=1
ID: 66011 Comment by: mail at johanntanzer dot at Reported by: proh dot alexey at gmail dot com Summary: Wrong serialize of rounded value Status: Open Type: Bug Package: *General Issues PHP Version: Irrelevant Block user comment: N Private report: N New Comment: Could not reproduce I get string(4) "0.33" string(11) "s:4:"0.33";" as expected Previous Comments: ------------------------------------------------------------------------ [2013-10-31 13:19:34] proh dot alexey at gmail dot com Description: ------------ Wrong serialize of rounded value Test script: --------------- $a = strval(round(1 / 3, 2)); var_dump($a, serialize($a)); Expected result: ---------------- float(0.33) string(7) "d:0.33;" Actual result: -------------- float(0.33) string(59) "d:0.330000000000000015543122344752191565930843353271484375;" ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=66011&edit=1