note 112438 added to function.ceil
| From: | alesegdia at gmail dot com | Date: | Sun, 16 Jun 2013 19:00:44 +0000 |
| Subject: | note 112438 added to function.ceil | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-195245@lists.php.net to get a copy of this message | ||
Some people asking on rounding -1.5 to -2 and 1.5 to 2, the way is this:
<?=round($var, 0, PHP_ROUND_HALF_UP)?>
See round() doc for more information on this.
----
Server IP: 69.147.83.199
Probable Submitter: 79.148.75.216
----
Manual Page -- http://php.net/manual/en/function.ceil.php
Edit -- https://master.php.net/note/edit/112438
Del: integrated -- https://master.php.net/note/delete/112438/integrated
Del: useless -- https://master.php.net/note/delete/112438/useless
Del: bad code -- https://master.php.net/note/delete/112438/bad+code
Del: spam -- https://master.php.net/note/delete/112438/spam
Del: non-english -- https://master.php.net/note/delete/112438/non-english
Del: in docs -- https://master.php.net/note/delete/112438/in+docs
Del: other reasons-- https://master.php.net/note/delete/112438
Reject -- https://master.php.net/note/reject/112438
Search -- https://master.php.net/manage/user-notes.php