This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Surprising Behavior Comparing Floats
- From: Marc Glisse <marc dot glisse at inria dot fr>
- To: Nick <nospam at codesniffer dot com>
- Cc: gcc <gcc at gcc dot gnu dot org>
- Date: Sat, 11 Jan 2014 16:24:16 +0100 (CET)
- Subject: Re: Surprising Behavior Comparing Floats
- Authentication-results: sourceware.org; auth=none
- References: <1389453495 dot 1716 dot 13 dot camel at nimble dot 325Bayport>
- Reply-to: gcc <gcc at gcc dot gnu dot org>
On Sat, 11 Jan 2014, Nick wrote:
First, I know that floating point variables should not be compared "raw"
due to the way they're represented. But the behavior I'm seeing has me
surprised.
First, this is not an appropriate list for this question. gcc-help would
be better. Second, there are hundreds of places on the internet answering
this same question.
Is this expected behavior?
Yes.
--
Marc Glisse