865
you are viewing a single comment's thread
view the rest of the comments
[-] iglou@programming.dev 3 points 6 days ago

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 6 days ago

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.

this post was submitted on 28 Oct 2025
865 points (100.0% liked)

Programmer Humor

27175 readers
997 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