Bug #4246: ceil and floor functions work only up to 32 bit numbers
| From: | dobosgy at netcity dot hu | Date: | Wed, 26 Apr 2000 11:42:07 +0000 |
| Subject: | Bug #4246: ceil and floor functions work only up to 32 bit numbers | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-18209@lists.php.net to get a copy of this message | ||
From: dobosgy@netcity.hu
Operating system: Linux
PHP version: 3.0.13
PHP Bug Type: Misbehaving function
Bug description: ceil and floor functions work only up to 32 bit numbers
<?
// Incorrect results:
$a=pow(2,31);
echo $a."<br>";
echo ceil($a)."<br>";
echo floor($a)."<br>";
echo "----------<br>";
// Correct results:
$a=pow(2,31)-1;
echo $a."<br>";
echo ceil($a)."<br>";
echo floor($a)."<br>";
?>
Configure command: ./configure '--with-apache=../apache_1.3.9' '--with-mysql'