Re: PL/I GCC



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)
should not be dependent on the size. My bank balance should be
to the cent if I have 10 cents or 10 million dollars.

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.

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



Relevant Pages

  • Re: PL/I GCC
    ... glen herrmannsfeldt wrote: ... should not be dependent on the size. ... My bank balance should be ... 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. ...
    (comp.lang.pl1)
  • Re: The Borg vs Lowes
    ... Sorry I had to add my 2 cents. ... LOL... ... It is all dependent on where you live I guess. ... the Houston are for some time now and they make Home Depot look like a Flea ...
    (rec.woodworking)
  • Re: crash during file writing, how to recover ?
    ... >>of a few cents here of there. ... >>an extreme case of overkill, ... I was referring to the triple mirroring when ... if my bank balance was wrong. ...
    (comp.programming)
  • Re: crash during file writing, how to recover ?
    ... >>of a few cents here of there. ... >>an extreme case of overkill, ... I was referring to the triple mirroring when ... if my bank balance was wrong. ...
    (comp.lang.java.programmer)
  • Re: crash during file writing, how to recover ?
    ... >>of a few cents here of there. ... >>an extreme case of overkill, ... I was referring to the triple mirroring when ... if my bank balance was wrong. ...
    (comp.os.linux.development.apps)

Loading