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-Thread: 103376,c4cb2c432feebd9d X-Google-Thread: 1094ba,c4cb2c432feebd9d X-Google-Attributes: gid103376,gid1094ba,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news1.google.com!news.germany.com!news.ispa.de!news2.arglkargh.de!noris.net!newsfeed.arcor.de!news.arcor.de!not-for-mail Date: Tue, 23 May 2006 19:53:53 +0200 From: Georg Bauhaus Organization: future apps GmbH User-Agent: Thunderbird 1.5.0.2 (X11/20060420) MIME-Version: 1.0 Newsgroups: comp.lang.ada,comp.lang.fortran Subject: Re: Ada vs Fortran for scientific applications References: <0ugu4e.4i7.ln@hunter.axlog.fr> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <44734c2b$0$11065$9b4e6d93@newsread4.arcor-online.net> NNTP-Posting-Date: 23 May 2006 19:53:47 MEST NNTP-Posting-Host: f9bf58b0.newsread4.arcor-online.net X-Trace: DXC=IV]VR:=P9Ihe`Bh@Z?dZ]MOide X-Complaints-To: usenet-abuse@arcor.de Xref: g2news2.google.com comp.lang.ada:4377 comp.lang.fortran:10140 Date: 2006-05-23T19:53:47+02:00 List-Id: Dick Hendrickson wrote: > What does Ada say about things like COS(1.1E300)? > It's unclear to me what that could or should mean on a > machine with finite (or at least less than 300 ;) ) digits > of precision. It means the compiler will tell you ;-) Messages will indeed depend on the amount of digits possible, but compilers cannot give up just because of a slightly bigger number. 4. if 1.1E300 < 1.2E300 then | >>> warning: condition is always True This can be compiled, and can be used in conditionals etc. without trouble. The generic Ada.Numerics.Generic_Elementary_Functions can be instantiated with any floating point type, so if you get a type definition of at least 300 digits past the compiler, then COS(1.1E300) might well have its standard meaning ;-) -- Georg