@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
=> View lispi314@udongein.xyz profile | View kelpana@mastodon.ie profile | View becomethewaifu@tech.lgbt profile | View jeremiah@tldr.nettime.org profile
text/gemini
This content has been proxied by September (3851b).