note 87103 added to function.round
| From: | NeilSmith at osu1 dot php dot net | Date: | Wed, 19 Nov 2008 13:46:01 +0000 |
| Subject: | note 87103 added to function.round | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-146708@lists.php.net to get a copy of this message | ||
When needing to Round Up to a whole number I did use no complicated function. I just did this.
if(eregi('.',$number)){
$num=split('[.]',$number);
$number=$num[0]+1;
}
----
Server IP: 92.48.74.199
Probable Submitter: 78.147.127.114
----
Manual Page -- http://www.php.net/manual/en/function.round.php
Edit -- https://master.php.net/note/edit/87103
Del: integrated -- https://master.php.net/note/delete/87103/integrated
Del: useless -- https://master.php.net/note/delete/87103/useless
Del: bad code -- https://master.php.net/note/delete/87103/bad+code
Del: spam -- https://master.php.net/note/delete/87103/spam
Del: non-english -- https://master.php.net/note/delete/87103/non-english
Del: in docs -- https://master.php.net/note/delete/87103/in+docs
Del: other reasons-- https://master.php.net/note/delete/87103
Reject -- https://master.php.net/note/reject/87103
Search -- https://master.php.net/manage/user-notes.php