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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,64012d256cd76a8d X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-04-10 11:38:44 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!sn-xit-03!sn-xit-01!sn-post-01!supernews.com!corp.supernews.com!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: Gnat/Windows float point Q Date: Thu, 10 Apr 2003 13:39:29 -0500 Organization: Posted via Supernews, http://www.supernews.com Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Newsreader: Microsoft Outlook Express 4.72.3612.1700 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3719.2500 X-Complaints-To: abuse@supernews.com Xref: archiver1.google.com comp.lang.ada:36063 Date: 2003-04-10T13:39:29-05:00 List-Id: tmoran@acm.org wrote in message ... >> I'd expect the result of such an operation to be either +infinity >> or -infinity. Those compare as you expect, and probably raise >> Constraint_Error when stored (if they didn't do that, the compiler would >> be violating the rule about math always returning the correct result or >> raising an exception). > > Is this a legitimate output, in terms of exceptions (none), comparisons >(the last three are False in both directions) and float'image (missing >leading blanks and worse), from this program? Hard to say; I don't understand the rules of Complex math that well. But I do find the results of the comparisons to be pretty weird. Have you tried this on a different compiler? Randy.