News for hackers. Stuff that matters.
Re:Two's complement – You beauty by AstralStorm on Wednesday January 11, 2017 @08:15AM (#13373673)
Just trimming 1s would be ambiguous. Is b11 3 or -2? You would have to add a 0 prefix to all positive numbers or some other to negative.
Re:Two's complement – You beauty by brandonbloom on Wednesday January 11, 2017 @01:42PM (#13376325)
Just prefix a + or - just like you do for base 10.
Re:Two's complement – You beauty by gpvos on Thursday January 12, 2017 @03:56AM (#13380841)
So then it would not make much of a difference anymore with what Python does. Which was what they wanted to avoid.