News for hackers. Stuff that matters.
Re:Two's complement – You beauty by signa11 on Wednesday January 11, 2017 @04:24AM (#13372767)
you could as well provide an explicit mask to help (how far does the sign extend) python f.e a

         'bin(-5 & 0b1111)' gives 
         '0b1011' 
which is what you want

There are no comments on this comment yet.