this post was submitted on 28 Oct 2025
874 points (99.0% liked)

Programmer Humor

27248 readers
872 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] iglou@programming.dev 3 points 1 week ago (1 children)

I would say your biggest issue here is needing precise decimal point computations and using imprecise data types. Any software that requires precision in the decimals needs to use types that are made for precise decimals. No floating point error.

[–] moseschrute@lemmy.world 1 points 1 week ago (1 children)

For this specific project, I need max 2-3 decimal places of precision. So rounding really fixes all the issues. It’s more that we’re preventing the user from seeing awkward decimals. We aren’t doing rocket science. But understanding what metrics need what precision, and sometimes the same metric needs a different precision in different contexts.

[–] psud@aussie.zone 1 points 1 day ago

In money you can work in cents and round fractions to whole cents in someone's favour depending on policy for example my home accounting program rounds divided amounts up in transfers to the various accounts. It's pretty good right now with a can't being such an insignificant value.