note 82730 added to function.round
| From: | Anonymous at osu1 dot php dot net | Date: | Wed, 23 Apr 2008 17:47:27 +0000 |
| Subject: | note 82730 added to function.round | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-138707@lists.php.net to get a copy of this message | ||
$discount = '5799.995';
$discount = round($discount, 2);
// rounds to 5799.99, but should be 5800.00
----
Server IP: 208.69.120.35
Probable Submitter: 74.223.47.226
----
Manual Page -- http://www.php.net/manual/en/function.round.php
Edit -- https://master.php.net/note/edit/82730
Del: integrated -- https://master.php.net/note/delete/82730/integrated
Del: useless -- https://master.php.net/note/delete/82730/useless
Del: bad code -- https://master.php.net/note/delete/82730/bad+code
Del: spam -- https://master.php.net/note/delete/82730/spam
Del: non-english -- https://master.php.net/note/delete/82730/non-english
Del: in docs -- https://master.php.net/note/delete/82730/in+docs
Del: other reasons-- https://master.php.net/note/delete/82730
Reject -- https://master.php.net/note/reject/82730
Search -- https://master.php.net/manage/user-notes.php