JFC please don't use floating point types for calculating financial transactions or storing monetary values. I just got asked to review some code by someone and it is the first thing I spotted.
[#]roundingerrors #floatingpoint #softwareengineering
=> More informations about this toot | More toots from kelpana@mastodon.ie
Turns out the person who asked me to review this tax calculation code genuinely had never heard of this problem before. He's accepted my reasons for highlighting it. Unfortunately it's going to take a while to refactor.
=> More informations about this toot | More toots from kelpana@mastodon.ie
@kelpana I wonder if this is why, when I filled out self-assessed tax returns, it only let me enter integer numbers of euros.
=> More informations about this toot | More toots from Infrapink@mastodon.ie
text/gemini
This content has been proxied by September (3851b).