Adding a positive number and a negative number
Scott David Daniels
Scott.Daniels at Acm.Org
Fri Jan 30 18:10:44 CET 2009
Grant Edwards wrote:
> On 2009-01-30, MRAB <google at mrabarnett.plus.com> wrote:
>> Eric Kang wrote:
>>> In two's complement representation, can adding one positive
>>> and one negative give you overflow?
> AFAIK, in Python adding integers never gives you overlow
> regardless of sign.
Right, but he wants his homework answer.
More information about the Python-list