Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

So this article's advice is to use rounding, just after he showed an example where rounding didn't work. Also if you forget to round once you can let errors accumulate.

> if you are doing some financial math that does not need to be accurate to the penny

There is no such thing. I worked with applications that dealt with tens of billions of Euros, and if the bottom line was off by even 1 cent, the users would come to us to figure out what went wrong. Suggesting that this is acceptable to knowingly introduce errors, when there is a pretty well-established practice that allows to avoid them entirely, is baffling.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: