RE: [PHP] More math fun
| From: | Robert Cummings | Date: | Wed, 13 Aug 2008 07:40:36 +0000 |
| Subject: | RE: [PHP] More math fun | ||
| References: | 1 2 3 4 5 6 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-278021@lists.php.net to get a copy of this message | ||
On Wed, 2008-08-13 at 08:14 +0100, Alex Chamberlain wrote:
> 1.7763568394E-15 is 0. The computer just had a rounding error somewhere. We
> had this discussion a few weeks ago, the solution being to decide to what
> accuracy you want the answer. Upto 14 decimal places will give you 0 here!!
I thought we had a different discussion a couple of weeks ago about
floating point storage precision. How come only Jay is getting *this*
rounding error?
Cheers,
Rob.
--
http://www.interjinn.com
Application and Templating Framework for PHP