Also is there a place where I could look up all the floating points ops in Scheme?
So you could do (eqv? a +nan.0). That makes me sad - I was going to suggest (= (* a 2) a) -- much more 'interesting'...
Aaron
2009-11-06 20:45:50
@Aaron: Won't that return true for 0?
Amuck
2009-11-06 20:48:51
@Amuck - I didn't say it was a _good_ suggestion...
Aaron
2009-11-06 22:35:46
+2
A:
In most programming languages, you can determine NaN values by comparing a value with itself.
(define (nan? x)
(not (= x x)))
Chris Jester-Young
2009-11-09 00:19:06