From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,23a8a20ef7e9405e X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!feeder.news-service.com!85.214.198.2.MISMATCH!eternal-september.org!.POSTED!not-for-mail From: Warren Newsgroups: comp.lang.ada Subject: Re: S'Is_nan or S'Is_inf? Date: Tue, 20 Jul 2010 14:12:01 +0000 (UTC) Organization: A noiseless patient Spider Message-ID: References: Injection-Date: Tue, 20 Jul 2010 14:12:01 +0000 (UTC) Injection-Info: mx01.eternal-september.org; posting-host="9f8M0iN5t54V+4DF/iqO8g"; logging-data="26908"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19CwiuDfbfPeWRGwljfsAwgeAPX27u4LMg=" User-Agent: Xnews/5.04.25 X-Face: &6@]C2>ZS=NM|HE-^zWuryN#Z/2_.s9E|G&~DRi|sav9{E}XQJb*\_>=a5"q]\%A;5}LKP][1mA{gZ,Q!j Cancel-Lock: sha1:RR9MUX4IAFhP7d84aaVnsi2wlfM= Xref: g2news1.google.com comp.lang.ada:12480 Date: 2010-07-20T14:12:01+00:00 List-Id: Randy Brukardt expounded in news:i22m9q$cd4$1@munin.nbi.dk: > "Warren" wrote in message > news:Xns9DB6AD1651560WarrensBlatherings@81.169.183.62... >> Is there any is not-a-number or is-infinity test support in >> Ada05+ (for floats)? Is there any being planned? > > We considered it for Ada 2005 (see AI95-0315-1). It was abandoned > because of the large impact on implementations and the weak demand > (hardly any user requests). > > John Barnes mentions this in the Ada 2005 Rational: > http://www.adaic.com/standards/05rat/html/Rat-9-3-3.html > > It wasn't resurrected for Ada 2012, so there won't be any change here. > > BTW, GNAT seems to pass through a lot of IEEE stuff, thus you can > write examples using that. Other Ada compilers (at least as of 2003-4 > timeframe) vary widely in what is exposed (Janus/Ada only supports > IEEE denormal numbers; everything else raises Constraint_Error before > it is stored). > > Randy. Very interesting. My project is fairly dependant on gnat (at the moment at least), so things should work ok. I'm not personally a fan of these special IEEE values, but they crop up in 3rd party libraries like the GSL etc. or in the reading of binary values from a file. Warren