ID: 15403 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: Open +Status: Bogus Bug Type: *Math Functions Operating System: Windows NT PHP Version: 4.1.1 New Comment:
from http://php.net/floor: "Returns the next lowest integer ..." -2 < -1.6 < -1 so -2 is the next lowest integeter, not -1 Previous Comments: ------------------------------------------------------------------------ [2002-02-06 08:31:06] [EMAIL PROTECTED] 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 this bug report at http://bugs.php.net/?id=15403&edit=1 -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php