comp.lang.ada
 help / color / mirror / Atom feed
From: tmoran@acm.org
Subject: Re: Why raises this an error? :-(
Date: Sun, 17 Mar 2002 01:06:08 GMT
Date: 2002-03-17T01:06:08+00:00	[thread overview]
Message-ID: <4_Rk8.8680$rf3.3411690745@newssvr21.news.prodigy.com> (raw)
In-Reply-To: 3C93C33A.13E4B43B@t-online.de

>  <snip> 1.0 - (GetTemperature(The, Alt)/Temp) ** 0.2349690
  And what's supposed to be the value on cold days when Temp = 0 C or F?
This is unlikely to make any physical sense.

>Found a workaround by converting all temperatures to Kelvin (no negative
  A really nice example of the compiler forcing you to go back and
reconsider "did I *really* want to do that?" and changing to a better way.

> > >     Alt_D := (-8.0/4.0) ** 2.0;
> > The problem I have is, that the exponent is not an Integer (this was
> But why is the value of the left operand not allowed to be negative
> according to the ARM?
  What is the value of (-2.0)**2.01?  Is that really what you wanted?



      reply	other threads:[~2002-03-17  1:06 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-03-16 19:48 Why raises this an error? :-( Kai Gläsner
2002-03-16 20:32 ` Damien Carbonne
2002-03-17 16:31   ` Steve Doiel
2002-03-16 20:37 ` Jeffrey Carter
2002-03-16 22:01   ` Kai Gläsner
2002-03-17  5:39     ` Jeffrey Carter
2002-03-17  7:25       ` Hyman Rosen
2002-03-16 22:12 ` Kai Gläsner
2002-03-17  1:06   ` tmoran [this message]
replies disabled

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