Re: PL/I GCC
- From: "Tom Linden" <tom@xxxxxxxxxx>
- Date: Sun, 19 Feb 2006 06:15:02 -0800
On Sat, 18 Feb 2006 03:58:45 GMT, James J. Weinkam <jjw@xxxxxxxxx> wrote:
glen herrmannsfeldt wrote:For financial calculations the uncertainty, (or rounding amount)And it will be if you carry the monetary amounts in cents, use a floating point format with enough precision, and make appropriate use of rounding to the nearest integer (addition or subtraction of .5 followed by trunc). Bin float(64) is adequate to handle the US budget. So where's the argument? Go back and read what I wrote.
should not be dependent on the size. My bank balance should be
to the cent if I have 10 cents or 10 million dollars.
For international financial trasactions you need 5 decimal places of accuracy,
sometimes referred to as 'pips' in the Forex market. Scaled fixed decimal is
the rule of the day here.
.
- References:
- re: PL/I GCC
- From: robin
- re: PL/I GCC
- From: henrik . sorensen
- Re: PL/I GCC
- From: multicsfan
- Re: PL/I GCC
- From: glen herrmannsfeldt
- Re: PL/I GCC
- From: Peter Flass
- Re: PL/I GCC
- From: James J. Weinkam
- Re: PL/I GCC
- From: robin
- Re: PL/I GCC
- From: James J. Weinkam
- Re: PL/I GCC
- From: glen herrmannsfeldt
- Re: PL/I GCC
- From: James J. Weinkam
- re: PL/I GCC
- Prev by Date: Re: PL/I GCC
- Next by Date: Re: I'm looking for a "personal" PL/I
- Previous by thread: Re: PL/I GCC
- Next by thread: Re: PL/I GCC
- Index(es):
Relevant Pages
|
Loading