Possible Duplicate:
>> in javascript
I'm going through some code and I ran into 2 weird operators: >>
and <<
,
in the form of 2<<3
and 442132132>>546542132
.
I deduced that x<<y
means x
times 2
in the power of y
. Meaning, 4<<3
is 4*(Math.pow(2,3))
, which is 32
, but I couldn't find what x>>y
means.
I know it usually returns 0
for small numbers, but when high numbers are involved, the result is usually a small number.