Toot

Written by Jeff Grigg on 2025-01-09 at 00:09

@lispi314 @kelpana @becomethewaifu @jeremiah

Java BigDecimal can handle it all, precisely, regardless of scale.

But do realize that currency conversion factors are barely good to two decimal places, on a good day.

Rounding is always a critically important business issue.

And so is accumulating currencies for batch conversion to avoid loss.

There are "banker's rounding" tricks (that predate computers) to ensure that the totals, when computed independently, add up exactly.

=> More informations about this toot | View the thread | More toots from JeffGrigg@mastodon.social

Mentions

=> View lispi314@udongein.xyz profile | View kelpana@mastodon.ie profile | View becomethewaifu@tech.lgbt profile | View jeremiah@tldr.nettime.org profile

Tags

Proxy Information
Original URL
gemini://mastogem.picasoft.net/toot/113795491417338039
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
220.84822 milliseconds
Gemini-to-HTML Time
0.500541 milliseconds

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