[Tutor] How to correct decimal addition.

Keith Winston keithwins at gmail.com
Sat Jan 25 22:19:55 CET 2014


On Sat, Jan 25, 2014 at 3:57 AM, spir <denis.spir at gmail.com> wrote:
> Note: AFAIK most financial software use integers for this reason and to
> avoid (or control) rounding errors.

I don't think this is true (no flame intended, hopefully you know I'm
forever in your debt Denis): there's a famous scam where insiders at a
major financial institution set the software so it always rounds down,
and the difference was deposited in their account. It was a matter of
fractions of pennies on a per-scam basis. I'm not certain if this ever
actually happened (I thought it did, but Snopes seems agnostic).

http://www.snopes.com/business/bank/salami.asp

-- 
Keith


More information about the Tutor mailing list