CSCI 1001 Lecture 8: Binary Arithmetic
Document Summary
If far left digit is zero = positive. If far left digit is one = negative: problem with this: computers can"t add or subtract these numbers easily. 2s compliment: converting a number to an equivalent negative, flip all bits and add 1, easier for computers to do, no overflow, drop extra digit. Rules with 2s compliment: carry-outs don"t matter, just drop the far left number, two numbers that have the same sign with a different sign outcome are overflows. If the addition or subtraction problem involves two different signs, there will.