Le Mardi 17 Septembre 2002 02:32, Jeff Buck a écrit :
> here's the code:
>
> http://www.umci.com/testcode.phps

That's not a bug, but a common behaviour of float numbers.
Your code:
        if ($test!=$test2)
is not written the good way. if you _REALLY_ need to compare two
floats, you should write them as

        if ( (string)$test !== (string)$test2 )
or
        if ( "$test" !== "$test2" )

which could help by transtyping values.

The best thing would be using real integer math.



--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to