note 82748 added to function.round

From: Date: Thu, 24 Apr 2008 08:00:10 +0000
Subject: note 82748 added to function.round
Groups: php.notes 
Request: Send a blank email to php-notes+get-138728@lists.php.net to get a copy of this message
If you want 5799.99 to round to 5800.00, then: $discount = '5799.995'; $discount = round($discount, -2); See e.g.: echo round(1241757, -3); // 1242000 ---- Server IP: 69.147.83.197 Probable Submitter: 198.54.202.3 (proxied: 41.240.101.87) ---- Manual Page -- http://www.php.net/manual/en/function.round.php Edit -- https://master.php.net/note/edit/82748 Del: integrated -- https://master.php.net/note/delete/82748/integrated Del: useless -- https://master.php.net/note/delete/82748/useless Del: bad code -- https://master.php.net/note/delete/82748/bad+code Del: spam -- https://master.php.net/note/delete/82748/spam Del: non-english -- https://master.php.net/note/delete/82748/non-english Del: in docs -- https://master.php.net/note/delete/82748/in+docs Del: other reasons-- https://master.php.net/note/delete/82748 Reject -- https://master.php.net/note/reject/82748 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#138728) next »