Edit report at https://bugs.php.net/bug.php?id=63424&edit=1
ID: 63424 Updated by: ni...@php.net Reported by: pgt-r at ya dot ru Summary: c -Status: Open +Status: Not a bug Type: Bug Package: Math related Operating System: Windows XP SP3 PHP Version: 5.4.7RC1 Block user comment: N Private report: N New Comment: Floating point values have a limited precision. Hence a value might not have the same string representation after any processing. That also includes writing a floating point value in your script and directly printing it without any mathematical operations. If you would like to know more about "floats" and what IEEE 754 is, read this: http://www.floating-point-gui.de/ Thank you for your interest in PHP. Previous Comments: ------------------------------------------------------------------------ [2012-11-03 08:39:59] pgt-r at ya dot ru Description: ------------ Problem in function ceil() Test script: --------------- <?php echo ceil((10 + 100) / 100 * 100); //111, but not 100 ?> Expected result: ---------------- The function ceil(((10 + 100) / 100 * 100)) must be return 110, but return 111 Actual result: -------------- fffff ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=63424&edit=1