note 52057 rejected from function.round by betz
| From: | betz@php.net | Date: | Wed, 20 Apr 2005 11:13:30 +0000 |
| Subject: | note 52057 rejected from function.round by betz | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-88251@lists.php.net to get a copy of this message | ||
Note Submitter: javie at harujion dot com
----
Something strange I noticed when working with the 8.075 number.
echo round(8.075 * 100) / 100;
// displays as 8.07
yet
echo round(8.075 * 10 * 10 / 100;
//displays as 8.08