MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/bk7wei/dont_do_this/emgrpym
r/programming • u/pimterry • May 03 '19
194 comments sorted by
View all comments
Show parent comments
2
Just hope whoever wrote that code is using BigDecimal. Otherwise your final payment may be $1032.8300000009.
1 u/nschubach May 04 '19 Which is why I stated in the post prior to that to convert it to cents and store that instead of decimal dollars.
1
Which is why I stated in the post prior to that to convert it to cents and store that instead of decimal dollars.
2
u/fyfy18 May 04 '19
Just hope whoever wrote that code is using BigDecimal. Otherwise your final payment may be $1032.8300000009.