#21266 [NEW]: ceil() misbehaviour
| From: | flying at dom dot natm dot ru | Date: | Sun, 29 Dec 2002 15:35:36 +0000 |
| Subject: | #21266 [NEW]: ceil() misbehaviour | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-28669@lists.php.net to get a copy of this message | ||
From: flying@dom.natm.ru
Operating system: All
PHP version: 4.2.3
PHP Bug Type: Scripting Engine problem
Bug description: ceil() misbehaviour
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 bug report at http://bugs.php.net/?id=21266&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=21266&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=21266&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=21266&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=21266&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=21266&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=21266&r=support
Expected behavior: http://bugs.php.net/fix.php?id=21266&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=21266&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=21266&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=21266&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=21266&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=21266&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=21266&r=isapi