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,18f7f6e041b3e0bf X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-08-16 08:29:50 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!postnews1.google.com!not-for-mail From: dewar@gnat.com (Robert Dewar) Newsgroups: comp.lang.ada Subject: Re: Decimal Floating point was RE: Information Systems Annex was RE: Dispatching and generics - language lawyer question Date: 16 Aug 2002 08:29:50 -0700 Organization: http://groups.google.com/ Message-ID: <5ee5b646.0208160729.6b1e3a07@posting.google.com> References: NNTP-Posting-Host: 205.232.38.14 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1029511790 17082 127.0.0.1 (16 Aug 2002 15:29:50 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 16 Aug 2002 15:29:50 GMT Xref: archiver1.google.com comp.lang.ada:28112 Date: 2002-08-16T15:29:50+00:00 List-Id: "Robert C. Leif" wrote in message news:... > From: Bob Leif > Since intermediate values in a calculation how a low > frequency of being > printed out, the simplest solution to digits is to leave > it at a fixed > value. This is also incomprehensible in the Ada context. In PL/1 and in COBOL, the precision and scaling of intermediate results is not explicit. In PL/1 there are implicit rules which turn out to have very surprising effects, and are generally considered a signal failure. In COBOL, intermediate precision is implementation defined and as a consequence most COBOL coding standards forbid the use of COMPUTE, with the possible exception of COMPUTE A = B ** C since the exponentiation operator is only available in the COMPUTE verb. But in this case there is no intermediate result so all is well. In Ada, we have a much better design where the programmer is forced to specifically give the precision and scaling of all intermediate results where an issue arises (addition and subtraction do not present a problem, it is division and multiplication that cause trouble). So I don't understand your comment about intermediate values in the context of Ada fixed-point.