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 21:24:58 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!arclight.uoregon.edu!wn13feed!wn12feed!wn14feed!worldnet.att.net!207.217.77.102!newsfeed2.earthlink.net!newsfeed.earthlink.net!stamper.news.pas.earthlink.net!newsread2.prod.itd.earthlink.net.POSTED!not-for-mail Newsgroups: comp.lang.ada From: "Eric G. Miller" Subject: Re: Gnat/Windows float point Q References: Message-ID: User-Agent: slrn/0.9.7.4 (Linux) Date: Fri, 11 Apr 2003 04:24:58 GMT NNTP-Posting-Host: 216.119.15.239 X-Complaints-To: abuse@earthlink.net X-Trace: newsread2.prod.itd.earthlink.net 1050035098 216.119.15.239 (Thu, 10 Apr 2003 21:24:58 PDT) NNTP-Posting-Date: Thu, 10 Apr 2003 21:24:58 PDT Organization: EarthLink Inc. -- http://www.EarthLink.net Xref: archiver1.google.com comp.lang.ada:36073 Date: 2003-04-11T04:24:58+00:00 List-Id: In article , tmoran@acm.org wrote: >> Could this paragraph from the GNAT Reference Manual have any bearing on >> this problem? >> >> 9.31 GNAT.Float_Control (`g-flocon.ads') > I added a "with" and inserted as the first line after "begin" > GNAT.Float_Control.Reset; > It made no difference. I'm using Gnat 3.15p on Windows. Perhaps > newer versions work differently? BTW, I note that "-gnato -O2" > generates somewhat different results - still screwy in the same > ways, but different. I tried playing around with your example, but instantiated the generic complex type with both long and normal floats. It seemed to make a difference as the generic versions caused an exception on abs() (though Im() and Re() both worked returning infinities!). Mind you, this is with gcc-3.2, which I guess is somewhat different from the 3.15p release... (I tried all the various -gnatV switches, to no effect). Besides the T'Valid flag, how do you check specifically for or set infinity or NaN or denormal floating point numbers? -- echo ">gra.fcw@2ztr< eryyvZ .T pveR" | rot13 | reverse