Message-ID: <353EF0E0.36E61729@usa.net> From: Paul Derbyshire 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> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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 Precedence: bulk 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