Ancestors

Written by Alanna on 2025-01-08 at 17:54

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

Written by Alanna on 2025-01-08 at 19:39

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

Toot

Written by Infrapink (he/his/him) on 2025-01-08 at 19:41

@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

Descendants

Proxy Information
Original URL
gemini://mastogem.picasoft.net/thread/113794435747048213
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
256.716266 milliseconds
Gemini-to-HTML Time
0.885117 milliseconds

This content has been proxied by September (3851b).