What if you wanted to use the number 130 & were working with signed numbers? 130 would be converted to binary, 10000010, which when stored would actually be the number -126. Basically you get garbage output. What if you wanted to use the number 260 & were working with unsigned numbers? 260 would be converted to binary, 100000100, but you would lose the most significant bit when it was being stored so you would only store 4. Garbage output again. What if you wanted -130? -130 again would be converted into binary but when stored some of the leading bits would be dropped (forgotten about) as before and you again would have garbage output. What if you add 255 + 2 in unsigned binary? Both numbers would be converted to binary and added and the result would be 1 but the system you are using may generate a carry which will set a flag telling you there was overflow (i.e. the result is too big to be stored in 8-bits) and you could then do something to work around the problem. Generating a carry only happens when an arithmetic operation is carried out. How do you make sense of hexadecimal 2s complements? In other words, is that not very similar to the method for binary you've just explained? I've never heard of hex 2s complement or do you mean the hex representation of a 2s complement binary number? Hexadecimal has no range because it is a number system. In theory the range is +- infinity.
130 would be converted to binary, 10000010, which when stored would actually be the number -126. Basically you get garbage output. What if you wanted to use the number 260 & were working with unsigned numbers? 260 would be converted to binary, 100000100, but you would lose the most significant bit when it was being stored so you would only store 4. Garbage output again. What if you wanted -130? -130 again would be converted into binary but when stored some of the leading bits would be dropped (forgotten about) as before and you again would have garbage output. What if you add 255 + 2 in unsigned binary? Both numbers would be converted to binary and added and the result would be 1 but the system you are using may generate a carry which will set a flag telling you there was overflow (i.e. the result is too big to be stored in 8-bits) and you could then do something to work around the problem. Generating a carry only happens when an arithmetic operation is carried out. How do you make sense of hexadecimal 2s complements? In other words, is that not very similar to the method for binary you've just explained? I've never heard of hex 2s complement or do you mean the hex representation of a 2s complement binary number? Hexadecimal has no range because it is a number system. In theory the range is +- infinity.
What if you wanted to use the number 260 & were working with unsigned numbers?
What if you wanted -130?
What if you add 255 + 2 in unsigned binary?
How do you make sense of hexadecimal 2s complements? In other words, is that not very similar to the method for binary you've just explained?