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

You can force JS to treat a Number type as an integer. It is uncommon and a bit more verbose.

https://en.wikipedia.org/wiki/Asm.js

I agree though. Dealing with arithmetic (or with Dates) in JS can be painful.



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

Search: