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,587583eece659d7a X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-03-16 17:07:04 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news.tele.dk!small.news.tele.dk!207.115.63.138!newscon04.news.prodigy.com!newsmst01.news.prodigy.com!prodigy.com!postmaster.news.prodigy.com!newssvr21.news.prodigy.com.POSTED!not-for-mail From: tmoran@acm.org Newsgroups: comp.lang.ada Subject: Re: Why raises this an error? :-( References: <3C93C33A.13E4B43B@t-online.de> X-Newsreader: Tom's custom newsreader Message-ID: <4_Rk8.8680$rf3.3411690745@newssvr21.news.prodigy.com> NNTP-Posting-Host: 67.112.201.52 X-Complaints-To: abuse@prodigy.net X-Trace: newssvr21.news.prodigy.com 1016327168 ST000 67.112.201.52 (Sat, 16 Mar 2002 20:06:08 EST) NNTP-Posting-Date: Sat, 16 Mar 2002 20:06:08 EST Organization: Prodigy Internet http://www.prodigy.com X-UserInfo1: FKPO@SVGXZUWSVPXN[O@_WH@YR_B@EXLLBWLOOAFWIWTEPIB_NVUAH_[BL[\IRKIANGGJBFNJF_DOLSCENSY^U@FRFUEXR@KFXYDBPWBCDQJA@X_DCBHXR[C@\EOKCJLED_SZ@RMWYXYWE_P@\\GOIW^@SYFFSWHFIXMADO@^[ADPRPETLBJ]RDGENSKQQZN Date: Sun, 17 Mar 2002 01:06:08 GMT Xref: archiver1.google.com comp.lang.ada:21349 Date: 2002-03-17T01:06:08+00:00 List-Id: > 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?