note 19995 deleted from function.round by alindeman
| From: | alindeman@php.net | Date: | Mon, 18 Mar 2002 21:46:40 +0000 |
| Subject: | note 19995 deleted from function.round by alindeman | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-27931@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