note 93511 added to function.round

From: Date: Mon, 14 Sep 2009 07:40:47 +0000
Subject: note 93511 added to function.round
Groups: php.notes 
Request: Send a blank email to php-notes+get-160531@lists.php.net to get a copy of this message
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. ---- Server IP: 72.55.140.6 Probable Submitter: 216.239.92.235 ---- Manual Page -- http://www.php.net/manual/en/function.round.php Edit -- https://master.php.net/note/edit/93511 Del: integrated -- https://master.php.net/note/delete/93511/integrated Del: useless -- https://master.php.net/note/delete/93511/useless Del: bad code -- https://master.php.net/note/delete/93511/bad+code Del: spam -- https://master.php.net/note/delete/93511/spam Del: non-english -- https://master.php.net/note/delete/93511/non-english Del: in docs -- https://master.php.net/note/delete/93511/in+docs Del: other reasons-- https://master.php.net/note/delete/93511 Reject -- https://master.php.net/note/reject/93511 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#160531) next »