[rrd-developers] Re: Representation of NAN and INF

Matt Zimmerman mdz at debian.org
Thu Jul 26 05:42:38 MEST 2001

On Thu, Jul 26, 2001 at 04:37:28AM +0200, Alex van den Bogaerdt wrote:

> Matt Zimmerman wrote:
> > As long as this is true, the expressions for DNAN and DINF are a perfectly
> > valid way to obtain some values which will satisfy finite/isnan/isinf in the
> > expected ways:  IEEE defines that isnan(0.0/0.0) and isinf(1.0/0.0) will both
> > be true.
> Do you also happen to know the official way to handle isnan(1.0/0.0) ?

The IEEE representations are such that isnan(x) and isinf(x) are mutually
exclusive (they will never both be true), so isnan(1.0/0.0) should always be

 - mdz

Unsubscribe mailto:rrd-developers-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:rrd-developers-request at list.ee.ethz.ch?subject=help
Archive     http://www.ee.ethz.ch/~slist/rrd-developers
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi

More information about the rrd-developers mailing list