0

Why would you write x = x >>> 0?

According to mozilla a >>> b:

Shifts a in binary representation b bits to the right, discarding bits shifted off, and shifting in zeros from the left.

and shifting by 0 bits doesn't seem that useful.

Thorben Croisé
  • 12,407
  • 8
  • 39
  • 50
  • [Look at this](http://stackoverflow.com/questions/3081987/what-good-does-zero-fill-bit-shifting-by-0-do-a-0) – Deepak Ingole Sep 20 '13 at 09:00
  • [Here is your complete answer . Check this][1] [1]: http://stackoverflow.com/questions/3081987/what-good-does-zero-fill-bit-shifting-by-0-do-a-0 – Ashisha Nautiyal Sep 20 '13 at 09:02

0 Answers0