comp.lang.ada
 help / color / mirror / Atom feed
* More on Ada and decimal
@ 1988-06-30 13:50 Marc.Graham
  1988-07-02 21:08 ` Vincent P. Broman
  0 siblings, 1 reply; 3+ messages in thread
From: Marc.Graham @ 1988-06-30 13:50 UTC (permalink / 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
                   

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1988-07-13 23:22 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1988-06-30 13:50 More on Ada and decimal Marc.Graham
1988-07-02 21:08 ` Vincent P. Broman
1988-07-13 23:22   ` Richard H. Miller

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