note 47523 deleted from function.floor by bjori
| From: | bjori@php.net | Date: | Sat, 27 May 2006 20:29:25 +0000 |
| Subject: | note 47523 deleted from function.floor by bjori | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-112383@lists.php.net to get a copy of this message | ||
Note Submitter: paradoxheart at anime-sakura dot org dot uk
----
Unfortunately, converting to a string does not completely eliminate the price problem.
If, for example, our calculation actually yielded the result 79.9899999999999 then naturally
we'd want the floor function to return 79.98, but instead it will return 79.99 if you use the
string conversion approach.