Two's complement: Difference between revisions

Content added Content deleted
mNo edit summary
Line 7: Line 7:


;Task
;Task
Show how to calculate the two's complement of an integer. If the technique is different depending on the size of the integer, give an example of each.
Show how to calculate the two's complement of an integer.