I'm a little confused by the ~
operator. Code goes below:
a = 1~a #-2b = 15~b #-16
How does ~
do work?
I thought, ~a
would be something like:
0001 = a1110 = ~a
why not?
I'm a little confused by the ~
operator. Code goes below:
a = 1~a #-2b = 15~b #-16
How does ~
do work?
I thought, ~a
would be something like:
0001 = a1110 = ~a
why not?