note 106219 added to function.ceil
| From: | b0bA at osu1 dot php dot net | Date: | Wed, 19 Oct 2011 15:11:24 +0000 |
| Subject: | note 106219 added to function.ceil | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-183998@lists.php.net to get a copy of this message | ||
$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
----
Server IP: 94.20.30.48
Probable Submitter: 84.184.134.184
----
Manual Page -- http://www.php.net/manual/en/function.ceil.php
Edit -- https://master.php.net/note/edit/106219
Del: integrated -- https://master.php.net/note/delete/106219/integrated
Del: useless -- https://master.php.net/note/delete/106219/useless
Del: bad code -- https://master.php.net/note/delete/106219/bad+code
Del: spam -- https://master.php.net/note/delete/106219/spam
Del: non-english -- https://master.php.net/note/delete/106219/non-english
Del: in docs -- https://master.php.net/note/delete/106219/in+docs
Del: other reasons-- https://master.php.net/note/delete/106219
Reject -- https://master.php.net/note/reject/106219
Search -- https://master.php.net/manage/user-notes.php