high digit represents the additive inverse of what it typically would • For instance, with a 4 bit signed nibble: 0 0 0 0 -8 4 2 1 • Instead of the high bit representing 8, with a signed number it would represent negative 8
same sign bit. • Adding two positive numbers should never result in a negative number • Adding two negative numbers should never result in a positive number Grokking Signed Overflows
bit of the sum is set, an overflow has occurred • When adding two negative numbers, if the sign bit of the sum is not set, an overflow has occurred Grokking Signed Overflows