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

I'm assuming that storing $129.99 as 12999 and dividing by 100 when necessary would be preferable?


The problem is that every javascript number is floating point.

Even if you think you have integers ... sometimes you don't.




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

Search: