On 1/30/07, John Cowan <[EMAIL PROTECTED]> wrote:
Matthew Welland scripsit:

> What is the right way to do this? I resorted to using :

I like the definition (lambda (f) (not (= f f)), which depends on the
fact that NaN is not numerically equal to NaN.

You can define "infinite?" as (lambda (f) (= f (+ f f))).


(string->number "+nan.0") ?


cheers,
felix


_______________________________________________
Chicken-users mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/chicken-users

Reply via email to