note 93511 deleted from function.round by danbrown
| From: | danbrown@php.net | Date: | Thu, 10 Dec 2009 03:19:55 +0000 |
| Subject: | note 93511 deleted from function.round by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-163805@lists.php.net to get a copy of this message | ||
Note Submitter: BigueNique at yahoo dot ca
----
Just a little fix of my previous round_up() function (^ is bitwise xor operator in PHP!):
<?
function round_up($val, $precision) {
return round($val + pow(10,-$precision-1), $precision);
}
?>
Sorry about any confusion this might have caused to anyone.