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