delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/04/23/11:45:26

From: Erik Max Francis <max AT alcyone DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Spotting NaNs
Date: Thu, 23 Apr 1998 08:22:04 -0700
Organization: Alcyone Systems
Lines: 17
Message-ID: <353F5C9C.239548CB@alcyone.com>
References: <353EDEE5 DOT 2797D62E AT usa DOT net> <353EF0E0 DOT 36E61729 AT usa DOT net> <353F2E33 DOT 2F59 AT helsinki DOT fi> <353F141B DOT 24547B62 AT usa DOT net>
NNTP-Posting-Host: charmaine.alcyone.com
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Paul Derbyshire wrote:

> I also noticed neither isnan() nor isnanf() appear to be ANSI or
> POSIX. Are they
> widely supported? Or a Gnu extension? or...?

isnan, isinf, and finite (returns true is the parameter is not +-INF or
NAN) are BSD 4.3 routines.  Unfortunately, neither are ANSI or POSIX,
and there is no standard way to tell whether they are available.

-- 
         Erik Max Francis, &tSftDotIotE / mailto:max AT alcyone DOT com
                       Alcyone Systems / http://www.alcyone.com/max/
  San Jose, California, United States / icbm:+37.20.07/-121.53.38
                                     \
                       "Magnificent / desolation."
                                   / Buzz Aldrin, on the Moon

- Raw text -


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