Re: Serious Bug?
| From: | Pierre-Alain Joye | Date: | Tue, 17 Sep 2002 00:33:38 +0000 |
| Subject: | Re: Serious Bug? | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-88351@lists.php.net to get a copy of this message | ||
On 16 Sep 2002 17:32:06 -0700
Jeff Buck <jeffb@umci.com> wrote:
> OK, I made a bug report the other day, but haven't seen/heard anything
> about it, so I'm posting this. I looked around and couldn't find any
> existing bug, but there's a lot to dig through counting the lists and
> stuff, but this bug seemed pretty major to me, and it's reproducible on
> a number of systems here.
>
> here's the code:
>
> http://www.umci.com/testcode.phps
>
> and here's the output on our system:
>
> http://www.umci.com/testcode.phtml
Take a look to the php general and php dev archives, you will find every informations you need about
using floats with php (or any others langages).
In resume, two floating numbers are *never* equal (you can get 2 with a bit luck, but you better to
never consider them as equal). You can test it with mysql too, or javascript.
hth
pa