Common strategies to deal with rounding errors in currency-intensive soft?

Posted by Max on Stack Overflow See other posts from Stack Overflow or by Max
Published on 2010-05-18T19:30:07Z Indexed on 2010/05/18 19:40 UTC
Read the original article Hit count: 115

Filed under:
|
|
|

What is your advice on:

  1. compensation of accumulated error in bulk math operations on collections of Money objects. How is this implemented in your production code? (things like variable rounding, etc...)
  2. theory behind rounding in accountancy.
  3. any literature on topic.

I currently read Fowler. He mentions Money type, but says nothing on strategies.

Older posts on money-rounding (here, and here) do not provide a details and formality I need.

Thanks for help.

© Stack Overflow or respective owner

Related posts about algorithm

Related posts about calculation