note 90545 added to function.round

From: Date: Mon, 27 Apr 2009 18:49:12 +0000
Subject: note 90545 added to function.round
Groups: php.notes 
Request: Send a blank email to php-notes+get-153855@lists.php.net to get a copy of this message
Is this bug? <?php $a=1.0748; round( $a , 2); // 1.07 // but: round( $a , 3); // 1.075 // and round( round($a,3) , 2); // 1.08 hurrraaaa ?> Why round(1.0748 , 2) not 1.08? ---- Server IP: 69.147.83.197 Probable Submitter: 92.245.124.123 ---- Manual Page -- http://www.php.net/manual/en/function.round.php Edit -- https://master.php.net/note/edit/90545 Del: integrated -- https://master.php.net/note/delete/90545/integrated Del: useless -- https://master.php.net/note/delete/90545/useless Del: bad code -- https://master.php.net/note/delete/90545/bad+code Del: spam -- https://master.php.net/note/delete/90545/spam Del: non-english -- https://master.php.net/note/delete/90545/non-english Del: in docs -- https://master.php.net/note/delete/90545/in+docs Del: other reasons-- https://master.php.net/note/delete/90545 Reject -- https://master.php.net/note/reject/90545 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#153855) next »