Surprising Behavior Comparing Floats
Marc Glisse
marc.glisse@inria.fr
Sat Jan 11 15:24:00 GMT 2014
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
More information about the Gcc
mailing list