Content deleted Content added
merge from arithmetic overflow |
|||
Line 35:
An ''overflow'' proper occurs when the result does not have the sign that one would predict from the signs of the operands (e.g. a negative result when adding two positive numbers). Therefore, it is useful to check the [[overflow flag]] after adding or subtracting numbers that are represented in [[two's complement]] form (i.e. they are considered signed numbers).
==Methods to mitigate integer overflow problems==
|