Serve La <la*****@nospam.home.nl> wrote:
Now that implementations are becoming available, I've started to
learn more about C99.
Now I was reading about the isgreater/isgreaterequal/isless/...
macro's and I'm wondering about why they are here? What's the
difference with the normal relational operators?
From ISO/IEC 9899:1999 Annex F.3:
[...]
The relational and equality operators provide IEC 60559 comparisons.
IEC 60559 identifies a need for additional comparison predicates to
facilitate writing code that accounts for NaNs. The comparison macros
(isgreater, isgreaterequal, isless, islessequal, islessgreater, and
isunordered) in <math.h> supplement the language operators to address
this need. The islessgreater and isunordered macros provide respectively
a quiet version of the <> predicate and the unordered predicate
recommended in the Appendix to IEC 60559.
Regards
--
Irrwahn
(ir*******@freenet.de)