From -8626741519510921048
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f78e5,d93488bb970aa444
X-Google-Attributes: gidf78e5,public
X-Google-ArrivalTime: 2001-06-11 10:26:02 PST
Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!bloom-beacon.mit.edu!howland.erols.net!dispose.news.demon.net!news.demon.co.uk!demon!mail2news.demon.co.uk!not-for-mail
From: "Greg Brewer" <nospam.greg@brewer.net>
Newsgroups: comp.std.c++
Subject: Re: How to test for NaNs and infinites?
Date: Mon, 11 Jun 2001 17:25:06 GMT
Organization: Houston Area League of PC Users
Approved: Fergus Henderson <fjh@cs.mu.oz.au>, moderator of comp.std.c++
Message-ID: <9g2f4h$1pr3$1@news.hal-pc.org>
References: <3B176D2F.70C3E7F7@meteo.fr> <usrihtkqfjd9qfj2bgtbp6pj530asi567k@4ax.com> <b172eb2f.0106071330.5f984936@posting.google.com> <9fql8h$pfg$1@news.hal-pc.org> <3B21100E.5B25F7AA@acm.org> <9frdlp$14bc$1@news.hal-pc.org> <3B222BB6.3B86CF85@acm.org>
X-Trace: mail2news.demon.co.uk 992280328 mail2news:962 mail2news mail2news.demon.co.uk
X-Complaints-To: abuse@demon.net
X-Mail2News-Path: news.demon.net!mulga.cs.mu.oz.au
X-Authentication-Warning: mulga.cs.mu.OZ.AU: fjh set sender to devnull@stump.algebra.com using -f
X-Robomod: STUMP, ichudov@algebra.com (Igor Chudov)
NNTP-Posting-Date: Mon, 11 Jun 2001 12:55:45 +0000 (UTC)
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.3018.1300
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.3018.1300
Lines: 20
Xref: archiver1.google.com comp.std.c++:5937

"Pete Becker" <petebecker@acm.org> wrote in message
news:3B222BB6.3B86CF85@acm.org...
> are wrong: NaN is not a subset of INF, and that test has nothing to do
> with infinite numbers.

We've had a 500 year flood here in Houston this past weekend so I'm not in
the mood to pull the documentation on IEEE floats that states otherwise.  It
may be that NaN is a superset of INF and the documentation is wrong on the
count.  But the test works so I stand by it.

Greg



---
[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://www.research.att.com/~austern/csc/faq.html                ]



