note 49850 added to function.ceil
| From: | sven at plus dot hr | Date: | Thu, 10 Feb 2005 11:59:52 +0000 |
| Subject: | note 49850 added to function.ceil | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-84788@lists.php.net to get a copy of this message | ||
function roundaway($num) {
switch($num) {
case ($num > 0):
$n = ceil($num);
break;
case ($num < 0):
$n = floor($num);
break;
case ($num == 0):
$n = 0;
break;
}
return $n;
}
----
Manual Page -- http://www.php.net/manual/en/function.ceil.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+49850
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+49850&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+49850&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+49850&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+49850&report=yes&reason=useless
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+49850&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+49850&report=yes
Search -- http://master.php.net/manage/user-notes.php