@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
=> 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).