Bug #69129 [NEW]: Floor, doesn't work at it shuld.

From: Date: Thu, 26 Feb 2015 21:48:41 +0000
Subject: Bug #69129 [NEW]: Floor, doesn't work at it shuld.
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-190969@lists.php.net to get a copy of this message
From: potarhere at gmail dot com Operating system: Debian 7.0 PHP version: 5.4.38 Package: Filter related Bug Type: Bug Bug description:Floor, doesn't work at it shuld. Description: ------------ I have found a small bug while using floor function. The function isn't showing as I wanted (and the function were made for). Cheers, Potar Test script: --------------- echo floor(2.9999999999999999); // 3 echo floor(2.999999999999999); // 2 -- Edit bug report at https://bugs.php.net/bug.php?id=69129&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=69129&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=69129&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=69129&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=69129&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=69129&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=69129&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=69129&r=needscript Try newer version: https://bugs.php.net/fix.php?id=69129&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=69129&r=support Expected behavior: https://bugs.php.net/fix.php?id=69129&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=69129&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=69129&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=69129&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=69129&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=69129&r=dst IIS Stability: https://bugs.php.net/fix.php?id=69129&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=69129&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=69129&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=69129&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=69129&r=mysqlcfg

« previous php.bugs (#190969) next »