In article <>, Serve La 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?
The macros does not, according to the standard, raise the
"invalid" floating-point exception when the arguments are
unordered (one of them is NaN). According to the rationale, the
macros were chosen instead of new operators like ?<, ?<=, ?>=,
and ?> since new operators for florating-point only would be a
too great a change to the base language. The macros do not work
with integers, since there is no NaN integer.
--
Andreas Kähäri
|