PHP 4.0 Bug #4760: ceil() returns the same value as floor()

From: Date: Thu, 01 Jun 2000 16:21:47 +0000
Subject: PHP 4.0 Bug #4760: ceil() returns the same value as floor()
Groups: php.dev 
Request: Send a blank email to php-dev+get-19984@lists.php.net to get a copy of this message
From: jakub.soucek@spika.cz Operating system: WinNT 4 SP5 PHP version: 4.0.0 Release PHP Bug Type: Misbehaving function Bug description: ceil() returns the same value as floor() Function ceil() returns the same value as floor(), i.e. ceil(9.7) = floor(9.7) = 9. In PHP 3 this code works fine. When I try to replace decimal point with comma, I get error message (this seems to be correct). I use Czech WinNT Workstation 4.0 with point as a decimal separator in regional settings, IIS 4.0 with PHP ISAPI module. I also tried to change the regional number settings so I don't think it is a problem of decimal separator.

« previous php.dev (#19984) next »