
18 May
2007
18 May
'07
8:58 p.m.
On 5/18/07, Andrew Koenig <ark-mlist@att.net> wrote:
Does
The IEEE floating-point standard says:
0. == 0.
Yes.
NaN == NaN
No. NaN compares unordered with everything.
Inf == Inf.
Yes.
It's sad that Inf == Inf, because most infinities (an infinite number of them :-) are not equal. On the other hand, I'd like to be able to check for Inf (and NaN) so we need to compare them somehow. Tony