Hacker News new | past | comments | ask | show | jobs | submit login

Further, 21 items that cost $55.1 total $1157.1000000000001



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.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: