comp.lang.ada
 help / color / mirror / Atom feed
From: "Randy Brukardt" <randy@rrsoftware.com>
Subject: Re: Gnat/Windows float point Q
Date: Thu, 10 Apr 2003 13:39:29 -0500
Date: 2003-04-10T13:39:29-05:00	[thread overview]
Message-ID: <v9behjca6ifi07@corp.supernews.com> (raw)
In-Reply-To: B58la.71710$ug3.153712@rwcrnsc51.ops.asp.att.net

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.





  reply	other threads:[~2003-04-10 18:39 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-04-08 21:00 Gnat/Windows float point Q tmoran
2003-04-09  6:47 ` Eric G. Miller
2003-04-09  8:30   ` tmoran
2003-04-09 21:11     ` Randy Brukardt
2003-04-10  6:23       ` tmoran
2003-04-10 18:39         ` Randy Brukardt [this message]
2003-04-10 21:58           ` tmoran
2003-04-11  0:52             ` David C. Hoos, Sr.
2003-04-11  1:37               ` tmoran
2003-04-11  4:24                 ` Eric G. Miller
2003-04-11 19:11         ` Simon Wright
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox