emacs-devel
[Top][All Lists]
Advanced

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

Re: bignum branch


From: Eli Zaretskii
Subject: Re: bignum branch
Date: Sat, 04 Aug 2018 09:20:53 +0300

> From: Paul Eggert <address@hidden>
> Date: Fri, 3 Aug 2018 14:02:04 -0700
> Cc: Andy Moreton <address@hidden>, address@hidden
> 
> >     (> 0 0.0e+NaN) => nil
> >     (< 0 0.0e+NaN) => nil
> >     (min 0 0.0e+NaN) => 0.0e+NaN
> >     (min 0.0e+NaN 0) => 0.0e+NaN
> >     (max 0 0.0e+NaN) => 0.0e+NaN
> >     (max 0.0e+NaN 0) => 0.0e+NaN
> 
> NaNs never compare numerically equal to, less than, or greater than any
> other floating-point value, even other NaNs. This is part of the IEEE
> standard.

I find it easier to memorize the following rule: "Any comparison with
NaN yields FALSE."  YMMV.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]