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

1.89% faster than Math.Floor, 100% more hard to read.


I used http://jsperf.com/or-vs-floor/2 in Firefox 40.0.3 and it was only 0.37% faster. Was similar in Chrome.




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

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

Search: