#20185 [NEW]: floor() function error
| From: | down94 at kimsnet dot co dot kr | Date: | Thu, 31 Oct 2002 09:32:31 +0000 |
| Subject: | #20185 [NEW]: floor() function error | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-23769@lists.php.net to get a copy of this message | ||
From: down94@kimsnet.co.kr
Operating system: solaris
PHP version: 4.2.2
PHP Bug Type: *Math Functions
Bug description: floor() function error
// code
$a = 4.1 - 0.1;
$b = 4;
echo "$a, $b <br>";
echo floor($a).", ".floor($b);
// result
4, 4
3, 4
It's same result (int)$a.
Good luck!
--
Edit bug report at http://bugs.php.net/?id=20185&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=20185&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=20185&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=20185&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=20185&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=20185&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=20185&r=support
Expected behavior: http://bugs.php.net/fix.php?id=20185&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=20185&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=20185&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=20185&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=20185&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=20185&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=20185&r=isapi