开发者

Right shift operator on mac safari not working

I am writing some code and used >> (right shift operator) , the ui is totally messed up.I debugged and found that its开发者_如何学运维 doing wrong math and finally found right shift operator is not working mac safari.

Is this a known behavior or i am doing something wrong.


fill with zeros with >>> when you have big numbers

>>> 2147483648>>2
-536870912
>>> 2147483648>>>2
536870912
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜