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.
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.
Nice:
“Taming Floating Point Sums”, Orson Peters (https://orlp.net/blog/taming-float-sums/).
Via HN: https://news.ycombinator.com/item?id=40477604
On Lobsters: https://lobste.rs/s/lps7qx/taming_floating_point_sums
Okta Breach Impacted All Customer Support Users—Not 1 Percent - Okta upped its original estimate of customer support users affected by a recent breach fr... - https://www.wired.com/story/okta-breach-disclosure-all-customer-support-users/ #security/cyberattacksandhacks #security/securitynews #roundingerrors #security
The (sort of, maybe a bit) revival* of #blogs might be a good consequence of the flight to the #Fediverse - at least I've started writing and reading them again.
This one on #RoundingErrors is a corker by @micefearboggis and if you're at all interested in #Climate #homogenisation or #Statistics you should definitely be following him.
A classic of the #genre.
*Yes there's lots of caveats, notably, it maybe too soon to tell..
https://fediscience.org/@micefearboggis/109647834997768125