From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 709 invoked by alias); 8 Jul 2002 01:06:57 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 677 invoked from network); 8 Jul 2002 01:06:54 -0000 Received: from unknown (HELO hollebeek.com) (216.178.83.228) by sources.redhat.com with SMTP; 8 Jul 2002 01:06:54 -0000 Received: (from tim@localhost) by hollebeek.com (8.9.3/8.9.3) id UAA13878; Sun, 7 Jul 2002 20:38:50 -0400 Date: Sun, 07 Jul 2002 22:27:00 -0000 From: Tim Hollebeek To: Robert Dewar Cc: pkoning@equallogic.com, gcc@gcc.gnu.org, geoffk@geoffk.org, lars@nocrew.org Subject: Re: Comparing doubles Message-ID: <20020707203850.A13875@hollebeek.com> Reply-To: tim@hollebeek.com References: <20020707232510.324E1F28D5@nile.gnat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <20020707232510.324E1F28D5@nile.gnat.com> X-SW-Source: 2002-07/txt/msg00328.txt.bz2 > < sorts of unreasonable things. Regardless of whether the standard > strictly requires it or not, it is reasonable to expect equality to be > an equivalence operation. > >> > > But it is not necessarily the case that a==a (in the case of a NaN) so > your equivalence relation does not cover NaN's. That's still reasonable, > but it is worth noticing the exception. I was going to mention it, but couldn't find a good way of saying "when restricted to 'real' values." Thanks.