Email list hosting service & mailing list manager


Re: reading NaNs Aubrey Jaffer 24 Oct 2005 20:42 UTC

 | Date: Mon, 24 Oct 2005 10:34:53 -0700
 | From: Per Bothner <xxxxxx@bothner.com>
 |
 | Aubrey Jaffer wrote:
 | >
 | > In an implementation which boxes flonums, NaNs aren't a single value;
 | > EQ? and EQV? are *not* guaranteed to return #t given two NaNs.
 |
 | eq? is not guaranteed to return #t given two equal flonums
 | eqv? *is* guaranteed to return #t given two equal flonums.
 |
 | NaNs should be the same: two NaNs that have the same bit-pattern
 | and size must compare as eqv? but not necessarily eq?.

Thanks for the correction; it was my mistake.