comp.lang.ada
 help / color / mirror / Atom feed
From: James Mansion <james@wgold.demon.co.uk>
Subject: Re: The disturbing myth of Eiffel portability
Date: 1996/11/20
Date: 1996-11-20T00:00:00+00:00	[thread overview]
Message-ID: <3292D290.51F7@wgold.demon.co.uk> (raw)
In-Reply-To: 56t1m4$nis@bcrkh13.bnr.ca


Kaz Kylheku wrote:
 
> What fool would use floating point numbers for a banking system in the first
> place? Floating point numbers are not well suited for representing currency,
> except if their extra mantissa bits allow you to use them as ``large
> integers''.

Hmm, what fool would make a statement like this without any
understanding of
derivatives trading? ;-)

Seriously, it makes sense to do the risk side of derivatives with
doubles.
You don't need that last little bit of accuracy when running the
valuation
models (which are themselves approximations) and you do need them to go
fast.

The settlements side is a thornier issue and you may need to use large
integers,
though its not entirely clear cut given the sizes of the principal
values
concerned.  It *is* the case that you have to read the letter of the
rounding
rules in use very carefully, to see where and how the rounding takes
place and
to how many decimal places.  Bear in mind that while you can't represent
all
fractions, you *can* represent integers exactly within quite a wide
range of
values, so you can potentially scale actual values so that the
appropriate
accuracy is there.

James




  parent reply	other threads:[~1996-11-20  0:00 UTC|newest]

Thread overview: 47+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-11-15  0:00 The disturbing myth of Eiffel portability The Rt Rev'd Colin James III, KOTM 1/96
1996-11-17  0:00 ` Eoin Woods
1996-11-17  0:00 ` The Rt Rev'd Colin James III, KOTM 1/96
1996-11-18  0:00   ` James Youngman
1996-11-20  0:00     ` Piercarlo Grandi
1996-11-21  0:00       ` Paul Johnson
1996-11-27  0:00         ` Piercarlo Grandi
1996-11-28  0:00           ` Don Harrison
1996-11-29  0:00             ` Piercarlo Grandi
1996-11-29  0:00               ` Don Harrison
1996-11-30  0:00                 ` Piercarlo Grandi
1996-12-01  0:00                 ` Jon S Anthony
1996-12-02  0:00                   ` Piercarlo Grandi
1996-11-29  0:00             ` Piercarlo Grandi
1996-11-29  0:00               ` Robert Dewar
1996-11-29  0:00               ` Robert Dewar
1996-11-20  0:00   ` Jeff Miller
1996-11-20  0:00     ` Piercarlo Grandi
1996-11-17  0:00 ` Lawrence Kirby
1996-11-18  0:00 ` Stephen J Bevan
1996-11-19  0:00 ` Kaz Kylheku
1996-11-19  0:00   ` Robert Dewar
1996-11-20  0:00     ` Larry Kilgallen
1996-11-21  0:00       ` Robert Dewar
1996-11-22  0:00         ` Larry Kilgallen
1996-11-22  0:00           ` Robert Dewar
1996-12-01  0:00             ` Graham C. Hughes
1996-12-01  0:00               ` Robert Dewar
1996-12-02  0:00                 ` Brian R. Hanson
1996-12-06  0:00                   ` Robert Dewar
1996-12-09  0:00                     ` Brian R. Hanson
1996-11-26  0:00         ` Van Snyder
1996-11-22  0:00       ` Ken Garlington
1996-11-25  0:00         ` Robert Dewar
1996-11-20  0:00     ` Matt Kennel
1996-11-22  0:00       ` Robert Dewar
1996-11-21  0:00     ` Francois Labreque
1996-11-21  0:00       ` Kaz Kylheku
1996-11-24  0:00       ` Robert Dewar
1996-11-21  0:00     ` Keith Thompson
1996-11-21  0:00       ` Robert Dewar
1996-11-22  0:00       ` Norman H. Cohen
1996-11-24  0:00       ` Lawrence Kirby
1996-11-20  0:00   ` James Mansion [this message]
1996-11-20  0:00     ` Kaz Kylheku
1996-11-25  0:00   ` Joachim Durchholz
1996-11-26  0:00     ` Lawrence Kirby
replies disabled

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