comp.lang.ada
 help / color / mirror / Atom feed
From: Marc.Graham@SEI.CMU.EDU
Subject: Yet more on Ada and decimal
Date: 12 Jul 88 14:16:57 GMT	[thread overview]
Message-ID: <8807121416.AA25964@bx.sei.cmu.edu> (raw)

I apologize to Mr. Broman for misspelling his name and hope I have it
correct this time.

As to large numbers. 32 bits gives you about 4 gigabucks. Consider the
national debt, which I am told is calculated to the penny. (if not to
the mill) The probability of that calculation being correct is
identically zero, but then it's not fair to tell the customer what his
problem is. 64 bits gives one 19 decimal digits. Roughly the square
root of decimal accuracy, and at the cost of a software hack on many
if not most machines. In short, for 19 decimal digits of precision,
decimal arithmetic is faster.

As for database io. My interest in this problem is precisely here. You
see, those decimal quantities in those databases are stored in the
decimal representation, when such a representation is present.

Marc H. Graham                    Software Engineering Institute
marc@sei.cmu.edu                  Carnegie Mellon University
(412) 268 7784                    Pittsburgh, PA   15213
                   

                 reply	other threads:[~1988-07-12 14:16 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
replies disabled

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