Hacker News new | ask | show | jobs
by tyweir 5771 days ago
Further, 21 items that cost $55.1 total $1157.1000000000001
4 comments

Do not, do not, do not use floating-point arithmetic for money.
Further, the validation for the price field lets you type in prices like "1.2.3.4", which is confusingly invalid.

Who needs tests when you have HN!

Maybe you expect payment in IP addresses.
fp math + money = Superman III
Oh, thanks.