0

I am working on a mobile app, it needs to do bit shifting at some point of the code.

I ran into a bug which is certainly puzzling, and if I do it on Python it runs well.

JavaScript:

1000>>32 // resulting in 1000

shiftJS

Python:

1000>>32 // resulting in 0

shiftPy

Why the same operation brings back different result?

Jason Aller
  • 3,541
  • 28
  • 38
  • 38
Sermore
  • 61
  • 1
  • 6

0 Answers0