Hacker News new | past | comments | ask | show | jobs | submit login

Right shift can get tricky for negative numbers. There are two operators for it, one which respects the sign bit, the other does not:

- https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...

- https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...




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

Search: