开发者

Right shift operator on mac safari not working

开发者 https://www.devze.com 2023-01-20 16:55 出处:网络
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 wo

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

精彩评论

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