Bitshift in javascript

Javascript store number in 64bits but convert them in 32bits when bitwise operator are involved. On hacky way to solve the problem for >> is to directly use division with a power of two.


37292659645044736 >> 22
-53
Wrong


37292659645044736 / Math.pow(2, 22)
8891262923.489746
Better