Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:37411 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 50627 invoked from network); 2 May 2008 20:08:35 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 May 2008 20:08:35 -0000 Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=pierre.php@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.198.224 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 209.85.198.224 rv-out-0506.google.com Received: from [209.85.198.224] ([209.85.198.224:26089] helo=rv-out-0506.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 90/49-01733-2C47B184 for ; Fri, 02 May 2008 16:08:34 -0400 Received: by rv-out-0506.google.com with SMTP id g37so801008rvb.23 for ; Fri, 02 May 2008 13:08:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=hnQysCRYFbDTrXxJ4rZ26xBq+TuyhcGUcxQ+Q/1jNiU=; b=r6Z6zko7VvEXTtjlxzgqp3ZVt6lNtelGsPoKTRJ20pGsG+RWCLIbu3YugxOsWqBk8vGlPNvkeRB1iGZ9T/8A9U3iQB7WEXs2x9dRtEu17CYFnBBDdxG7GVelo47hyS1kgnayNdK0XW2DqreqjleuBfP1tLpUb4iPZNFrF7YgKcQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=TKhyFd73gzHI9bOrtghk8ddc9V/DU7xZMKD1MJrlyEEEDoSiD+i6FsqHv9vx/opC4O7zYqYMQcTjMqOYKctXAy/YWqBX4iGIpGr8S2i13yRhJ+/JDJptgO9hcJJNlngq1CJnB80BhyPTU+4o7Vav2RGETANE7zq+tB2l2pvy2ZI= Received: by 10.140.163.3 with SMTP id l3mr1526369rve.117.1209758911890; Fri, 02 May 2008 13:08:31 -0700 (PDT) Received: by 10.141.123.13 with HTTP; Fri, 2 May 2008 13:08:31 -0700 (PDT) Message-ID: Date: Fri, 2 May 2008 22:08:31 +0200 To: truth@proposaltech.com Cc: internals@lists.php.net In-Reply-To: <1209758625.1075.87.camel@inspiron.local> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <001401c8ac74$dda6d060$98f47120$@com> <1209749793.1075.54.camel@inspiron.local> <481B5F45.4030106@gmail.com> <481B6068.9060402@lerdorf.com> <1209758625.1075.87.camel@inspiron.local> Subject: Re: [PHP-DEV] Float comparison From: pierre.php@gmail.com ("Pierre Joye") Hi Todd, On Fri, May 2, 2008 at 10:03 PM, Todd Ruth 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