How this calculation works
Show the mathematical sum and the wrapped result of fixed-width two’s complement addition.
Wrap the sum modulo 2ʷ and interpret it in the signed rangeA worked example
At width eight, 100+40 wraps from 140 to −116.
Good to know
Both operands must fit the selected width.
Reference: NIST DLMF, Functions of Number Theory (opens in a new tab) ↗
Read the result
Show the mathematical sum and the wrapped result of fixed-width two’s complement addition.
The primary result is labeled “Wrapped signed sum”. Keep the input definitions in view when comparing this result with another method.
Try a related calculation
Both operands must fit the selected width.
For a related exercise, try the greatest common divisor.
A few questions, answered
How can I check the default inputs by hand?
At width eight, 100+40 wraps from 140 to −116.
Which rule does this calculator apply?
Wrap the sum modulo 2ʷ and interpret it in the signed range