comp.lang.ada
 help / color / mirror / Atom feed
From: "Robert C. Leif" <rleif@rleif.com>
Subject: Decimal Floating types was RE: Information Systems Annex was RE: Dispatching and generics - language lawyer question
Date: Thu, 15 Aug 2002 14:54:09 -0700
Date: 2002-08-15T14:54:09-07:00	[thread overview]
Message-ID: <mailman.1029448504.10558.comp.lang.ada@ada.eu.org> (raw)
In-Reply-To: <5ee5b646.0208150126.ac9f65e@posting.google.com>

From: Bob Leif
To: Robert Dewar et al.

Please see IBM http://www2.hursley.ibm.com/decimal/
"Standard Decimal Arithmetic"

"Most computers today support binary floating-point in hardware. While
suitable for many purposes, binary floating-point should not be used for
financial, commercial, and user-centric applications and web services
because the decimal data used in these applications cannot be
represented exactly using binary floating-point. (See the Frequently
Asked Questions page for more reasons and examples.) "

"The problems of binary floating-point can be avoided by using base 10
(decimal) exponents and preserving those exponents where possible. This
site describes a decimal arithmetic which achieves the necessary results
and conforms to the relevant ANSI and IEEE standards. Notably, a single
data type can be used for integer, fixed-point, and floating-point
decimal arithmetic."


Since COBOL does not have a decimal floating point, COBOL programmers,
who still do most of the financial applications, have not had a chance
to try it!.  There is another class of financial programmers, the Wall
Street analysts. The analysts do derivatives and other exotic financial
instruments. Do they use conventional binary floating point or COBOL
decimal? 

I might note that you have in the past quite properly cautioned on the
complexity of conventional floating point calculations. One good way to
check them would be to employ a decimal floating point.

On a philosophical level, since computers are supposed to work for
humans, why not have them work in the most understandable way? I would
greatly prefer my spreadsheets and computer assisted mechanical design
programs be in decimal. Humans work in pseudo-integer space. We like our
numbers and dimensions, in particular, to be a float that corresponds to
an integer followed by a decimal point, followed by zeros. Designers do
not like to fiddle with a dimension that comes out 28.998. We greatly
prefer 29.000.



-----Original Message-----
From: comp.lang.ada-admin@ada.eu.org
[mailto:comp.lang.ada-admin@ada.eu.org] On Behalf Of Robert Dewar
Sent: Thursday, August 15, 2002 2:27 AM
To: comp.lang.ada@ada.eu.org
Subject: Re: Information Systems Annex was RE: Dispatching and generics
- language lawyer question

"Robert C. Leif" <rleif@rleif.com> wrote in message
news:<mailman.1029282844.28090.comp.lang.ada@ada.eu.org>...
> Ada decimal types (as currently defined) are fixed-point
> types.
> 
> Are you asking for decimal floating-point?


Decimal floating-point would be quite useless in financial
applications as far as I can see (COBOL does not have this
facility). What you need in financial calculations is decimal
fixed-point, and very occasionally (this has only
recently been included in the COBOL standard) binary fpt.




  parent reply	other threads:[~2002-08-15 21:54 UTC|newest]

Thread overview: 59+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-07-24  5:33 Dispatching and generics - language lawyer question Grein, Christoph
2002-07-24 22:55 ` Robert A Duff
2002-07-25 15:46   ` Ben Brosgol
2002-07-29 20:38     ` Robert A Duff
2002-07-31 22:52       ` Dmitry A.Kazakov
2002-07-31 20:18         ` Robert A Duff
2002-08-02  1:15           ` Dmitry A.Kazakov
2002-08-01 16:30             ` Hyman Rosen
2002-08-02 23:42               ` Dmitry A.Kazakov
2002-08-02 15:49                 ` Hyman Rosen
2002-08-02 17:48                   ` Stephen Leake
2002-08-10  3:03                     ` Warren W. Gay VE3WWG
2002-08-05 11:15                   ` Dmitry A. Kazakov
2002-08-12 12:44                   ` Robert Dewar
2002-08-13  2:00                     ` Information Systems Annex was " Robert C. Leif
2002-08-13  8:17                       ` Robert Dewar
2002-08-13 23:53                         ` Information Systems Annex Robert C. Leif
2002-08-13 17:37                       ` Information Systems Annex was RE: Dispatching and generics - language lawyer question Keith Thompson
2002-08-13 23:53                         ` Robert C. Leif
2002-08-14  8:52                           ` Keith Thompson
2002-08-14 21:53                             ` Robert C. Leif
2002-08-15  9:31                               ` Robert Dewar
2002-08-15 21:54                                 ` Decimal Floating point was " Robert C. Leif
2002-08-16  6:26                                   ` Keith Thompson
2002-08-16 16:26                                     ` Robert C. Leif
2002-08-16 18:17                                       ` Keith Thompson
2002-08-16 15:26                                   ` Robert Dewar
2002-08-16 15:29                                   ` Robert Dewar
2002-08-15  9:26                           ` Robert Dewar
2002-08-15 16:17                             ` Darren New
2002-08-15 17:25                               ` David C. Hoos
2002-08-15 17:31                                 ` Darren New
2002-08-15 19:59                                 ` Frank J. Lhota
2002-08-15 17:39                               ` tmoran
2002-08-15 19:18                               ` Information Systems Annex was RE: Dispatching and generics - Larry Kilgallen
2002-08-15 18:41                                 ` Hyman Rosen
2002-08-16 15:49                                 ` Robert Dewar
2002-08-17  6:31                                   ` Simon Wright
2002-08-17 14:17                                     ` Robert Dewar
2002-08-15 21:54                             ` Robert C. Leif [this message]
2002-08-16 15:21                               ` Decimal Floating types was RE: Information Systems Annex was RE: Dispatching and generics - language lawyer question Robert Dewar
2002-08-16 16:15                                 ` Decimal Floating types Warren W. Gay VE3WWG
2002-08-17 10:52                                   ` Robert Dewar
2002-08-17 14:30                                     ` Warren W. Gay VE3WWG
2002-08-20  0:26                                       ` Robert Dewar
2002-08-20  2:35                                         ` SteveD
2002-08-22 18:15                                         ` Richard Riehle
2002-08-23  3:23                                           ` Robert Dewar
2002-08-16 15:47                             ` Information Systems Annex (usefulness of Decimal Floats) Warren W. Gay VE3WWG
2002-08-17 10:54                               ` Robert Dewar
2002-08-17 14:06                                 ` Warren W. Gay VE3WWG
2002-08-17 10:56                               ` Robert Dewar
2002-08-17 14:12                                 ` Warren W. Gay VE3WWG
2002-08-17 19:04                                 ` Robert C. Leif
2002-08-20  0:25                                   ` Robert Dewar
2002-08-16 15:38                           ` Information Systems Annex was RE: Dispatching and generics - language lawyer question Robert Dewar
2002-08-13 22:50           ` Randy Brukardt
2002-08-14  0:02             ` Robert A Duff
2002-07-25  0:40 ` Robert Dewar
replies disabled

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