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?

2

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.