note 19995 added to function.round

From: Date: Mon, 18 Mar 2002 16:59:43 +0000
Subject: note 19995 added to function.round
Groups: php.notes 
Request: Send a blank email to php-notes+get-27914@lists.php.net to get a copy of this message
There seems to be a bug with this rounding function. e.g. $vatamount = 499 * 0.175; $vatamount = round($vatamount,2); which returns 87.32 It should return 87.33 when using it this way it works echo(round(87.325,2)); Which returns 87.33 -- http://www.php.net/manual/en/function.round.php http://master.php.net/manage/user-notes.php?action=edit+19995 http://master.php.net/manage/user-notes.php?action=delete+19995 http://master.php.net/manage/user-notes.php?action=reject+19995

« previous php.notes (#27914) next »