News for hackers. Stuff that matters.
Re:Copilot regurgitating Quake code, including sweary comments by Quekid5 on Friday July 02, 2021 @11:21AM (#27712689)
> ratio type if you need arbitrary precision.

This is the better default, so I'd ditch the qualifier, personally. At the very least when it comes to the persistent storage of monetary amounts. People often start out thinking that they won't need arbitrary precision until that one little requirement trickles into the backlog...

Arbitrary precision rationals handles all the artithmetic you could reasonably want to do with monetary amounts and it lets you decide where to round at display time (or when generating a final invoice or whatever), so there's no information loss.

There are no comments on this comment yet.