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!news1.google.com!npeer01.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: Warren Newsgroups: comp.lang.ada Subject: Re: S'Is_nan or S'Is_inf? Date: Fri, 16 Jul 2010 17:06:38 +0000 (UTC) Organization: A noiseless patient Spider Message-ID: References: <1tbp3geoa5yna$.171cmlfdrbm98$.dlg@40tude.net> Injection-Date: Fri, 16 Jul 2010 17:06:38 +0000 (UTC) Injection-Info: mx01.eternal-september.org; posting-host="9f8M0iN5t54V+4DF/iqO8g"; logging-data="28770"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19zeIK+bqux5rrLUxVpjdUEyXTahgZZLkw=" 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:5JG6NSuFCUV0jcxEnRsmjoDC6C8= Xref: g2news1.google.com comp.lang.ada:12445 Date: 2010-07-16T17:06:38+00:00 List-Id: Dmitry A. Kazakov expounded in news:1tbp3geoa5yna$.171cmlfdrbm98$.dlg@ 40tude.net: > with Ada.Text_IO; use Ada.Text_IO; > procedure IEEE is -- Only if Float is IEEE! > Zero : Float := 0.0; > Inf : Float := 1.0 / Zero; > NaN : Float := 0.0 / Zero; > begin > Put_Line ("Valid " & Boolean'Image (Inf'Valid)); > Put_Line ("In range " & Boolean'Image (Inf <= Float'Last)); > Put_Line ("Self NaN " & Boolean'Image (NaN = NaN)); > end IEEE; > > On an IEEE machine it could print 3x FALSE. On a non IEEE machine, is there going to be an exception raised when dividing by zero? Warren