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=0.6 required=5.0 tests=BAYES_05,INVALID_DATE autolearn=no autolearn_force=no version=3.4.4 Path: utzoo!attcan!uunet!husc6!mailrus!purdue!decwrl!hplabs!ucbvax!SEI.CMU.EDU!Marc.Graham From: Marc.Graham@SEI.CMU.EDU Newsgroups: comp.lang.ada Subject: More on Ada and decimal Message-ID: <8806301350.AA05872@bx.sei.cmu.edu> Date: 30 Jun 88 13:50:34 GMT Sender: daemon@ucbvax.BERKELEY.EDU Organization: The Internet List-Id: A Mr. Borman claims that asking for decimal support is `thoughtless' and that no one would use floating point computations for dollars. The last claim is true. I am looking for fixed point decimal support. Mr. Borman suggests a solution of counting in binary and maintaining (implicitly or explicitly) a decimal scale. Such a solution is functionally accurate and viable in some circumstances, but it is not the entire story. If it were, there would be no such thing as decimal hardware. The advantages of decimal hardware are twofold: 1. Decimal hardware typically allows for computations on much larger numbers than the binary (fixed point) hardware; e.g. 10**31 as contrasted to 2**32; 2. It eliminates the necessity to convert between binary and decimal representations. If the commonly held view of commercial applications, little calculation and lots of io, is accurate, then the savings in conversion costs outweigh the loss in compute speed. Marc H. Graham Software Engineering Institute marc@sei.cmu.edu Carnegie Mellon University (412) 268 7784 Pittsburgh, PA 15213