Bug #15403: Strange behavior of floor() with negative values

From: Date: Wed, 06 Feb 2002 13:31:06 +0000
Subject: Bug #15403: Strange behavior of floor() with negative values
Groups: php.dev 
Request: Send a blank email to php-dev+get-79354@lists.php.net to get a copy of this message
From: mail@sebastian-bopp.de Operating system: Windows NT PHP version: 4.1.1 PHP Bug Type: *Math Functions Bug description: Strange behavior of floor() with negative values echo floor(1.6); // will output "1" This is allright... echo floor(-1.6); // will output "-2" But shouldn't this one output "-1" instead? --- Sebastian -- Edit bug report at http://bugs.php.net/?id=15403&edit=1 -- Fixed in CVS: http://bugs.php.net/fix.php?id=15403&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=15403&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=15403&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=15403&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=15403&r=support Expected behavior: http://bugs.php.net/fix.php?id=15403&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=15403&r=notenoughinfo

« previous php.dev (#79354) next »