note 106219 deleted from function.ceil by danbrown
| From: | danbrown@php.net | Date: | Wed, 19 Oct 2011 15:13:23 +0000 |
| Subject: | note 106219 deleted from function.ceil by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-183999@lists.php.net to get a copy of this message | ||
Note Submitter: b0bA
----
$test = 1.1 * 100;
echo $test; //110
echo ceil(110); //110
echo ceil(110.0); //110
//guess what
echo ceil($test); //111
//workaround (convert to string)
$test .= "";
echo ceil($test); //110