Common strategies to deal with rounding errors in currency-intensive soft?
- by Max
What is your advice on:
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...)
theory behind rounding in accountancy.
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.