Hi all,

I need some help understanding the right shift operation on -9. To my
understanding, it's represented as -0b1001, Now, if I shift it one place to
right, it should give me -0b0100, which is decimal equivalent of 4. but
running this on python console gives me -5.

Please help me out here.

Thanks,
Varun
_______________________________________________
BangPypers mailing list
BangPypers@python.org
http://mail.python.org/mailman/listinfo/bangpypers

Reply via email to