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,75f197493b7ab882 X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsfeed.velia.net!noris.net!nntp.ilk.net!not-for-mail From: Markus Schoepflin Newsgroups: comp.lang.ada Subject: Re: Forcing exceptions on NANs with GNAT? Date: Fri, 21 Nov 2008 10:33:27 +0100 Organization: Customer of ILK Internet GmbH, Karlsruhe, Germany Message-ID: References: NNTP-Posting-Host: csdc.comsoft.de Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: nntp.ilk.net 1227260007 29108 212.86.205.70 (21 Nov 2008 09:33:27 GMT) X-Complaints-To: usenet@ilk.net NNTP-Posting-Date: Fri, 21 Nov 2008 09:33:27 +0000 (UTC) User-Agent: Thunderbird 2.0.0.18 (Windows/20081105) In-Reply-To: Xref: g2news1.google.com comp.lang.ada:2725 Date: 2008-11-21T10:33:27+01:00 List-Id: Markus Schoepflin wrote: > is it possible to influence the behaviour of GNAT regarding the handling > of NANs? (Most importantly in the special case of division by zero.) [...] Thanks all for the answers. The suggestion from Dmitry (create a subtype with the same range as float) works fine for my purposes, GNAT then raises range check errors for both division by zero and overflows. Markus