note 38500 added to function.round
| From: | ralphvonpawelsz at web dot de | Date: | Wed, 24 Dec 2003 12:51:28 +0000 |
| Subject: | note 38500 added to function.round | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-62410@lists.php.net to get a copy of this message | ||
Try this on Linux:
round(4.505,2)
It schould be 4.51, but on Linux it's 4.5
This is a BUG? -Or what?
BTW: On WIMP it's calculated right 4.51...
How to fix it? Anyone implemented a good round function?
Cheers
Ralph
----
Manual Page -- http://www.php.net/manual/en/function.round.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+38500
Delete -- http://master.php.net/manage/user-notes.php?action=delete+38500&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+38500&report=yes
Search -- http://master.php.net/manage/user-notes.php