Alexander Gromnitsky's Blog

A typical bitwise

Latest update:

No issues in Ruby or in tasteless Python:

$ irb --simple-prompt
>> 3232235777 & 4294967232
=> 3232235776

$ python3 -q
>>> 3232235777 & 4294967232
3232235776

but

$ node
> 3232235777 & 4294967232
-1062731520

wtf

> (3232235777 & 4294967232) >>> 0
3232235776

All praise JavaScript!


Tags: ойті
Authors: ag