Trev13@programming.dev to Programming@programming.dev · 2 days agoBig Decimals: Stop Using Floats or Cents for Moneymedium.comexternal-linkmessage-square53fedilinkarrow-up187arrow-down13
arrow-up184arrow-down1external-linkBig Decimals: Stop Using Floats or Cents for Moneymedium.comTrev13@programming.dev to Programming@programming.dev · 2 days agomessage-square53fedilink
minus-squareTreczoks@lemmy.worldlinkfedilinkarrow-up2·1 day agoAs you said, better use integers. And that’s exactly what is done at this point.
minus-squareFizzyOrange@programming.devlinkfedilinkarrow-up1arrow-down1·1 day agoIndeed, but there’s no need to shit on people using floats because in almost all cases they are fine too.
minus-squareTreczoks@lemmy.worldlinkfedilinkarrow-up1arrow-down1·1 day agoWhere the heck did I “shit on people using floats”?
As you said, better use integers. And that’s exactly what is done at this point.
Indeed, but there’s no need to shit on people using floats because in almost all cases they are fine too.
Where the heck did I “shit on people using floats”?