Re: "banker's rounding"

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



The following is from:

http://www.theserverside.com/patterns/thread.tss?thread_id=28063

* * * * * * *
Bankers actually use rounding schems that not only reduce precision but
also reduce accuracy. These methods are used to keep small amounts of
money from being lost or created incorrectly. It doesn't make sense for
monetary calculations to be stored as fractions.

For example. Let's say a dollar is split between three accounts. So
using your methodology, you add 1/3 of a dollar to each one and leave it
that way to determine precision later. Eventually that value has to be
converted to a decimal because there is no such thing as a third of a
dollar. So what is put in each account? $0.3333? $0.0001 just
disappeared into the ether. 0.3334? $0.0002 was just created out of thin
air. You cannot coordinate to give one account the extra $0.0001 because
you left it for later. Unless you create some compicated database of
where fractions came from and where their conterparts are allocated,
keeping the values as fractions will cause errors.
* * * * * * *


I believe in Superman III, Richard Prior's character exploited this
rounding error to embezzle money from his employer to build a super evil
computer.




Bob O`Bob <filterbob@xxxxxxxxxxxxxxx> wrote in
news:#57C6mWNFHA.2748@xxxxxxxxxxxxxxxxxxxx:

> Does anyone here even know of someone who actually prefers VB to do
> "Banker's Rounding" ?
>
> I'm sure it's possible.
> Maybe even common.
> I'm just curious how probable.
>
>
>
> Bob

.



Relevant Pages

  • Re: Nearest Common Ancestor Report (XDb1s $1000 Challenge)
    ... truncate (instead of rounding) and deposit the ... fractions to an account. ...
    (comp.object)
  • Re: demonic numbers !
    ... > corresponding calculation of error intervals. ... Then they're either not doing enough math for rounding errors to ... accumulate or they're not using a wide enough range of magnitudes. ... They don't need more than 53 bits of precision to store those values. ...
    (comp.lang.lisp)
  • Re: Why (0.09+0.01-0.1) is not equal to 0.09+0.01-0.1 ?
    ... The binary to decimal conversion gives full accuracy by default, but also includes rounding algorithms since users will seldom care about hundreds of figures. ... Function D2BAs String ... the work involved in avoiding lost precision due to type conversion ... ' D2Dis sufficient to uniquely determine the binary representation of x ...
    (microsoft.public.excel)
  • Re: The Okopochini Bug
    ... Knowledge base articles for full coverage of difficulties that Excel ... How to Correct Rounding Errors in Floating-Point Arithmetic ... As you have noticed Excel handles only 15 digits of precision. ... reason is that Excel, like many other computer programs, uses the IEEE ...
    (microsoft.public.excel.misc)
  • Re: Why (0.09+0.01-0.1) is not equal to 0.09+0.01-0.1 ?
    ... > gives full accuracy by default, but also includes rounding algorithms ... > partitioned mantissa by without risk of overflow ... > Function D2BAs String ... the work involved in avoiding lost precision due to type ...
    (microsoft.public.excel)