Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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 Summer 2026 batch! Applications are open till May 4

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

Search: