you are viewing a single comment's thread
view the rest of the comments
[–] 3 points 1 year ago (2 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.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 1 point 1 year ago (1 child)

    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.

  • source
  • parent
  • hideshow 1 child comment
  • [–] 1 point 1 year 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.

  • source
  • parent