NaN Per Bothner (10 Aug 2005 05:36 UTC)
Re: NaN bear (10 Aug 2005 05:46 UTC)

NaN Per Bothner 10 Aug 2005 05:36 UTC

The rationale discusses NaN, but I think the solution that
0/0. = 0/0. is wrong.  I think it is important to be compatible
with IEEE, and that 0/0. be the same as NaN.

The Kawa solution (which I think is the right one):

(define NaN ...)
(= NaN NaN) => #f
(eq? NaN NaN) => #t
(eqv? NaN NaN) => #t
(equal? NaN NaN) => #t

This may technically violate R5RS, but I think it's the
best choice if we want to be compatible with IEEE, which
think we do.
--
	--Per Bothner
xxxxxx@bothner.com   http://per.bothner.com/