Jan-27-2020, 08:03 AM
(This post was last modified: Jan-27-2020, 08:04 AM by ajayachander.)
(Jan-27-2020, 07:58 AM)stranac Wrote: This has a pretty good explanation: https://wiki.python.org/moin/BitwiseOperators
Thank you
Apparently, a NOT gives -x-1
and in this case, it would be ~x = -100 - 1
~x = - 101 which equals to -5 decimal
Cheers