From 1489999475315025188
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f78e5,d93488bb970aa444
X-Google-Attributes: gidf78e5,public
X-Google-ArrivalTime: 2001-06-02 16:30:02 PST
Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!newsfeed.gamma.ru!Gamma.RU!newsfeed.icl.net!dispose.news.demon.net!news.demon.co.uk!demon!mail2news.demon.co.uk!not-for-mail
From: Stephen Clamage <stephen.clamage@sun.com>
Newsgroups: comp.std.c++
Subject: Re: How to test for NaNs and infinites?
Date: Sat,  2 Jun 2001 23:29:56 GMT
Organization: Excite@Home - The Leader in Broadband http://home.com/faster
Approved: Fergus Henderson <fjh@cs.mu.oz.au>, moderator of comp.std.c++
Message-ID: <usrihtkqfjd9qfj2bgtbp6pj530asi567k@4ax.com>
References: <3B176D2F.70C3E7F7@meteo.fr>
Reply-To: stephen.clamage@sun.com
X-Trace: mail2news.demon.co.uk 991524600 mail2news:26873 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)
X-Newsreader: Forte Agent 1.8/32.548
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Date: Sat, 02 Jun 2001 15:59:12 PDT
Lines: 22
Xref: archiver1.google.com comp.std.c++:5599

On Fri,  1 Jun 2001 19:13:53 GMT, Hubert HOLIN <Hubert.Holin@meteo.fr>
wrote:

>	I am wondering about the provisions in the standard (yes I finally
>bought a copy ;-) ) for NaNs and infinites.

There are no provisions in the C++ standard. The standard makes almost
no requirements on floating-point types. Implementations are not
required to support NaN or infinity. If support is provided, it can
take any form that the implementation chooses.

Other standards provide definitions and APIs for floating-point, and
an implementation could choose to follow one or more of them.
---
Steve Clamage, stephen.clamage@sun.com

---
[ 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                ]



