|
From: | felix winkelmann |
Subject: | Re: [Chicken-users] How to detect when you have +nan.0 or similar? |
Date: | Tue, 30 Jan 2007 08:31:26 +0100 |
On 1/30/07, John Cowan <address@hidden> 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
[Prev in Thread] | Current Thread | [Next in Thread] |