I found in the reference manual that eqv? works for NANs. I assume that eqv?
or = would both work on infinities. Here again, the science collection uses
eqv? for both infinities and NANs - so I may have discussed this with you
years ago when I originally wrote them. But I do think that adding expli
At Wed, 27 Oct 2010 14:20:37 -0600, Doug Williams wrote:
> What is the correct way to test for +nan.0 in Racket? For example, (= +nan.0
> +nan.0) = #f. This seems to be the behavior specified in R6RS. In the
> science collection I implemented nan? using eqv?, which seems to work in
> Racket; but th
Does (not (= x x)) work? That's the way people sometimes do it JavaScript, so
it can't be wrong.
Dave
On Oct 27, 2010, at 1:20 PM, Doug Williams wrote:
> What is the correct way to test for +nan.0 in Racket? For example, (= +nan.0
> +nan.0) = #f. This seems to be the behavior specified in R6RS
3 matches
Mail list logo