note 105052 deleted from function.round by danbrown

From: Date: Mon, 25 Jul 2011 13:51:28 +0000
Subject: note 105052 deleted from function.round by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-181850@lists.php.net to get a copy of this message
Note Submitter: wisenheimer ---- 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 ?>

« previous php.notes (#181850) next »