[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: reading NaNs

This page is part of the web mail archives of SRFI 77 from before July 7th, 2015. The new archives for SRFI 77 contain all messages, not just those from before July 7th, 2015.



 | Date: Mon, 24 Oct 2005 10:34:53 -0700
 | From: Per Bothner <per@xxxxxxxxxxx>
 | 
 | 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.