note 37619 added to function.ceil
| From: | xris*forevermore__dot__net_dot_nospam at rn2 dot php dot net | Date: | Fri, 21 Nov 2003 00:06:58 +0000 |
| Subject: | note 37619 added to function.ceil | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-60730@lists.php.net to get a copy of this message | ||
The documentation for ceil() says "next highest integer" but this isn't really the
case. It actually only rounds to the next highest integer if the passed-in value isn't an
integer. Thus:
ceil(1.1) == 2;
ceil(2) == 2;
----
Manual Page -- http://www.php.net/manual/en/function.ceil.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+37619
Delete -- http://master.php.net/manage/user-notes.php?action=delete+37619&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+37619&report=yes
Search -- http://master.php.net/manage/user-notes.php