ID: 21266 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: Open +Status: Bogus Bug Type: Scripting Engine problem Operating System: All PHP Version: 4.2.3 New Comment:
Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.php.net/manual/ and the instructions on how to report a bug at http://bugs.php.net/how-to-report.php Read up on the floating point type in the manual. Derick Previous Comments: ------------------------------------------------------------------------ [2002-12-29 09:35:36] [EMAIL PROTECTED] Please take a look at following example: <?php echo ceil(83.47 * 100 * 31); echo ceil(83.47 * 31 * 100); ?> For both for PHP 4.2.3 and 4.3.0 RC2, it gives me this result: 258757 258758 which is definitly breaks mathematical rules. Correct result should be 258757. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=21266&edit=1
