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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,fedc2d05e82c9174 X-Google-Attributes: gid103376,public From: Niklas Holsti Subject: Re: Calculating SQRT in ADA Date: 1999/03/24 Message-ID: <36F94393.5D1B317D@icon.fi>#1/1 X-Deja-AN: 458600651 Content-Transfer-Encoding: 7bit References: <01be7613$c90ed040$0e2915c0@w95> Content-Type: text/plain; charset=us-ascii X-Trace: read2.inet.fi 922303946 194.252.1.179 (Wed, 24 Mar 1999 21:32:26 EET DST) Organization: Space Systems Finland Ltd MIME-Version: 1.0 NNTP-Posting-Date: Wed, 24 Mar 1999 21:32:26 EET DST Newsgroups: comp.lang.ada Date: 1999-03-24T00:00:00+00:00 List-Id: bob wrote: [snip] > In Ada83 or Ada95, if the target is real, possibly the following: > x : real; > [snip] > x = x**0.5; Nope, for the standard "**" the right operand must be integer (Integer'Base, actually). > All of the Ada85 comilers I have used supply a "math" package > containing sqrt also. That agrees with my experience and would be the first place to look. Niklas Holsti Working at but not speaking for Space Systems Finland Ltd.