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

You say that, and then an army of idiots out in the real world continues to use floats for financial data and other large integers.

I ran into a site that broke because they were using 64b unix nanotime in Javascript and comparing values which were truncated. You see this in js, python, etc. constantly.



For the JS case, that's really JavaScript's fault, since double-precision float ("number") is the only built in numeric type, other that BigInt, which has only existed for a few years.




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

Search: