comp.lang.ada
 help / color / mirror / Atom feed
From: Marc.Graham@SEI.CMU.EDU
Subject: More on Ada and decimal
Date: 30 Jun 88 13:50:34 GMT	[thread overview]
Message-ID: <8806301350.AA05872@bx.sei.cmu.edu> (raw)

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
                   

             reply	other threads:[~1988-06-30 13:50 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1988-06-30 13:50 Marc.Graham [this message]
1988-07-02 21:08 ` More on Ada and decimal Vincent P. Broman
1988-07-13 23:22   ` Richard H. Miller
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox