Trev13@programming.dev to Programming@programming.dev · 2 months agoBig Decimals: Stop Using Floats or Cents for Moneymedium.comexternal-linkmessage-square55fedilinkarrow-up1103arrow-down13
arrow-up1100arrow-down1external-linkBig Decimals: Stop Using Floats or Cents for Moneymedium.comTrev13@programming.dev to Programming@programming.dev · 2 months agomessage-square55fedilink
minus-squareTreczoks@lemmy.worldlinkfedilinkarrow-up2·2 months agoAs you said, better use integers. And that’s exactly what is done at this point.
minus-squareFizzyOrange@programming.devlinkfedilinkarrow-up1arrow-down1·2 months 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-down2·2 months 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”?