comp.lang.ada
 help / color / mirror / Atom feed
From: dewar@gnat.com (Robert Dewar)
Subject: Re: Decimal Floating types was RE: Information Systems Annex was RE: Dispatching and generics - language lawyer question
Date: 16 Aug 2002 08:21:14 -0700
Date: 2002-08-16T15:21:14+00:00	[thread overview]
Message-ID: <5ee5b646.0208160721.7ae05a3@posting.google.com> (raw)
In-Reply-To: mailman.1029448504.10558.comp.lang.ada@ada.eu.org

"Robert C. Leif" <rleif@rleif.com> wrote in message news:<mailman.1029448504.10558.comp.lang.ada@ada.eu.org>...

> 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!.

And why do you suppose COBOL does not have this? It is
because the COBOL standards committee does not consider
it worth adding. What does Robert Leif know that the
committee does not :-)

The point is that in financial calculations, you either
want absolute error control, e.g. in computing yields of
bonds, where very often the instruments specify the exact
algorithm in terms of fixed-point decimal.

Or you want approximate results rounded. There is no
requirement for mathematically accurate rounding for
decimal floating-point that I am aware of, so in practice
if you are doing approximate calculations, it is just fine
to do things in binary with sufficient precision and then
round the binary to decimal. Yes, there are marginal cases
where the double rounding can lead you to be "off" by 1 ulp
but there are no situations where this would matter.

Furthermore, as I noted before, there is no point in embedding such a
feature into the language. If you want
decimal floating-point, just use a library, there are many,
that supply this capability and make calls to this library.
That's what the compiler would do anyway.

COBOL programmers can perfectly well use such libraries.
COBOL is perfectly capable of calling library routines!

This seems a perfect example of a "requirement" generated
out of the blue, without full understanding of the actual
problem space.

The COBOL committee has been extremely adventurous in
extending the language (the COBOL object model is for
example more ambitious than that of C++ or Ada). If there
was the slightest good argument for adding decimal floating
point to the language, it would have been seriously considered.



  reply	other threads:[~2002-08-16 15:21 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                             ` Decimal Floating types was RE: Information Systems Annex was RE: Dispatching and generics - language lawyer question Robert C. Leif
2002-08-16 15:21                               ` Robert Dewar [this message]
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