c++/5060: Comparisons between double on gcc 2.96
Richard Henderson
rth@redhat.com
Mon Dec 10 17:06:00 GMT 2001
The following reply was made to PR c++/5060; it has been noted by GNATS.
From: Richard Henderson <rth@redhat.com>
To: rodrigc@gcc.gnu.org
Cc: chailan@sand.cad.cea.fr, gcc-bugs@gcc.gnu.org, gcc-gnats@gcc.gnu.org,
gcc-prs@gcc.gnu.org, nobody@gcc.gnu.org
Subject: Re: c++/5060: Comparisons between double on gcc 2.96
Date: Mon, 10 Dec 2001 16:55:44 -0800
On Mon, Dec 10, 2001 at 07:43:54PM -0000, rodrigc@gcc.gnu.org wrote:
> double z = 1.0/i ;
> double o_x = x ;
> x = x + z ;
> printf("i:%g %20.20g %20.20g ", i, z+ o_x, x);
> double q = o_x+z;
> //if( ! (x==(double)(o_x+z))) std::cout <<"HELP!";
Seach for "excess precision" on this list. This is faq.
r~
More information about the Gcc-prs
mailing list