Toot

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

@lispi314 @kelpana @becomethewaifu @jeremiah

Java BigDecimal is essentially BigInteger with logic to keep track of decimal places. Exactly. To any number of decimal places that will fit in memory.

Like more than needed to track the number of particles in the universe. I've had it out over 200 places to the right of the decimal, computed exactly.

But then you must apply business logic to round to something sane, like pennies. The rounding will also be exact. Like exactly half a cent.

=> 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/113795725425963343
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
222.971509 milliseconds
Gemini-to-HTML Time
0.979415 milliseconds

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