John Mavrick's Garden

Search IconIcon to open search

Last updated Unknown

Status: Tags: Links: Binary


Overflow

Since integers can only hold x amount of bits, an overflow will occur when the calculated answer holds more than it’s total capacity

If 2 Two’s Complement numbers are added, and they both have the same sign (both positive or both negative), then overflow occurs if and only if the result has the opposite sign. Overflow never occurs when adding operands with different signs.


References:


Interactive Graph