Re: Float comparison
| From: | Pierre Joye | Date: | Fri, 02 May 2008 20:08:31 +0000 |
| Subject: | Re: Float comparison | ||
| References: | 1 2 3 4 5 6 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-37411@lists.php.net to get a copy of this message | ||
Hi Todd,
On Fri, May 2, 2008 at 10:03 PM, Todd Ruth <truth@proposaltech.com> wrote:
> (BTW, Pierre, the statement "X considers the fact that S1
> to mean that S2" is a statement _agreeing_ with S1. It calls
> into question whether S1 implies S2. I agree a perfect solution
> to the problems we're discussing don't exist. I don't think
> that implies that improvements should not be made.)
You can do it yourself by manually truncating the values and convert
them to integer (and use bigint or openssl bignum) before the
comparison. But there is no improvement possible in this area, nothing
that will not break at some point.
Cheers,
--
Pierre
http://blog.thepimp.net | http://www.libgd.org