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-squareAmju Wolf@pawb.sociallinkfedilinkarrow-up3·4 days agoAs someone who has implemented shopping carts, invoicing solutions and banking transactions I can assure you floats will be extremely painful for you. A huge benefit of big decimals is that they don’t allow you to make a mistake (as easily) as floats where imprecision just “creeps in”.
As someone who has implemented shopping carts, invoicing solutions and banking transactions I can assure you floats will be extremely painful for you.
A huge benefit of big decimals is that they don’t allow you to make a mistake (as easily) as floats where imprecision just “creeps in”.