note 105052 added to function.round

From: Date: Mon, 25 Jul 2011 13:50:39 +0000
Subject: note 105052 added to function.round
Groups: php.notes 
Request: Send a blank email to php-notes+get-181849@lists.php.net to get a copy of this message
what cheezfan at gmail dot com wrote on 07-Feb-2011 02:39 about precision is wrong. Please take a look at this disproof: <?php $string = "1241757"; $precision = -3; echo round($string,$precision); //1242000 echo round($string*10^$precision); //-12417569 ?> ---- Server IP: 212.124.37.9 Probable Submitter: 79.251.82.65 ---- Manual Page -- http://www.php.net/manual/en/function.round.php Edit -- https://master.php.net/note/edit/105052 Del: integrated -- https://master.php.net/note/delete/105052/integrated Del: useless -- https://master.php.net/note/delete/105052/useless Del: bad code -- https://master.php.net/note/delete/105052/bad+code Del: spam -- https://master.php.net/note/delete/105052/spam Del: non-english -- https://master.php.net/note/delete/105052/non-english Del: in docs -- https://master.php.net/note/delete/105052/in+docs Del: other reasons-- https://master.php.net/note/delete/105052 Reject -- https://master.php.net/note/reject/105052 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#181849) next »