KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
We all know (right?!) that one should not compare floating-point values by testing for equality ( operator== ). But what if I actually want to determine whether two float s a and b are binary equal ? If they're not allowed to be NaN (or other "special values"), is this "safe"? Can I rely on operator== to function in this way?
Tags (comma-separated)
Save Edits
Cancel