This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Surprising Behavior Comparing Floats


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]