Re: Simple math failing - PHP Bug?
| From: | Chris Shiflett | Date: | Mon, 01 Nov 2004 05:22:38 +0000 |
| Subject: | Re: Simple math failing - PHP Bug? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-200807@lists.php.net to get a copy of this message | ||
--- Jason Wong <php-general@gremlins.biz> wrote:
> Most computer languages handling floating point calculations
> just as poorly. If accuracy is important use the BCMath
> functions.
Or use Fortran and double precision. :-)
Still, testing a floating point number as a boolean is one of the worst
ideas I've ever heard...
Chris
=====
Chris Shiflett - http://shiflett.org/
PHP Security - O'Reilly HTTP Developer's Handbook - Sams
Coming January 2005 http://httphandbook.org/