Let say we have 1111 1101 Change all 1 and 0 vice versa: 0000 0010 0000 0010 = 2. After it add 1: now have 3 and add "-" sign: -3 That's all. Hope it halps
SCJP 1.4 <br />SCBCD 1.3<br />SCWCD 1.4
Corey McGlone
Ranch Hand
Joined: Dec 20, 2001
Posts: 3271
posted
0
If you want more information regarding 2's complement, do a search over this forum - you'll find tons of good information. Corey