delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/04/23/03:48:55

Message-ID: <353EF0E0.36E61729@usa.net>
From: Paul Derbyshire <pderbysh AT usa DOT net>
Organization: The Chaos Zone
MIME-Version: 1.0
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Spotting NaNs
References: <353EDEE5 DOT 2797D62E AT usa DOT net>
Lines: 26
Date: Thu, 23 Apr 1998 07:46:15 GMT
NNTP-Posting-Host: 206.172.228.123
NNTP-Posting-Date: Thu, 23 Apr 1998 03:46:15 EDT
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Paul Derbyshire wrote:
> 
> Is there an ANSI/POSIX function for testing if a float or a double is a NaN?

Impatient, I wrote my own only to get a warning about an ambiguous overload,
which pointed me to an isnan in math.h. Oddly, it seems someone forgot to
document this thing in the info files. (I had typed 'nan' in RHIDE and ctrl-F1'd
it looking for any info entry on such a function and it found none; and then
looking under functional categories under math and under misc and in the
alphabetical list also foundnothing...)

-- 
   .*.  "Clouds are not spheres, mountains are not cones, coastlines are not
-()  <  circles, and bark is not smooth, nor does lightning travel in a
   `*'  straight line."     ------------------------------------------------
        -- B. Mandelbrot   | Paul Derbyshire (PGD) ao950 AT freenet DOT carleton DOT ca
______________________ ____|_____________                   pderbysh AT usa DOT net
Programmer & Humanist |  ICQ:  10423848  | http://chat.carleton.ca/~pderbysh

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019