This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Incorrect runtime behavior involving comparison
- To: austern at sgi dot com
- Subject: Re: Incorrect runtime behavior involving comparison
- From: Horst von Brand <vonbrand at sleipnir dot valparaiso dot cl>
- Date: Mon, 10 Jan 2000 20:31:47 -0300
- cc: gcc-bugs at gcc dot gnu dot org, lo at cthulhu dot engr dot sgi dot com
"Matt Austern" <austern@isolde.engr.sgi.com> said:
> SYMPTOM:
> The correct output from the following program is:
> t1 is false
> t2 is false
You are comparing two "should be equal" floating point expressions,
depending on rounding and the phase of the moon, you will get different
results.
--
Horst von Brand vonbrand@sleipnir.valparaiso.cl
Casilla 9G, Viņa del Mar, Chile +56 32 672616