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=-1.9 required=5.0 tests=BAYES_00 autolearn=ham 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!news1.google.com!npeer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!nntp.club.cc.cmu.edu!feeder.erje.net!eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: S'Is_nan or S'Is_inf? Date: Thu, 15 Jul 2010 23:07:51 +0100 Organization: A noiseless patient Spider Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Date: Thu, 15 Jul 2010 22:07:51 +0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="KCXegvZb5vh43D+f3BR6Ew"; logging-data="28974"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+D8Y96YOXaAZUkCzy0QGlkVzV4XRA77uA=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (darwin) Cancel-Lock: sha1:RwiHvKJa63C4oGP1P+Bhk/muEb8= sha1:sBxfCpVuoRaCplBAza97nc7fxZU= Xref: g2news1.google.com comp.lang.ada:12442 Date: 2010-07-15T23:07:51+01:00 List-Id: Warren writes: > Is there any is not-a-number or is-infinity test support in Ada05+ > (for floats)? Is there any being planned? With GNAT, using a subtype subtype Checked_Float is Float range Float'Range; will give you a Constraint_Error for NaN or +/-Inf.