Search in shivacherukuri.tech@blogger.com

Wednesday, May 18, 2011

why 2's complement is better than sign magnitude

   Because sign magnitude has 2 representations for 0 100000000000000000000 ( = -0) and 000000000000000000000 ( = +0) Clearly, -0 = +0. However, because of these two representations, different machines process sign magnitude differently at 0. Two's complement avoids this problem and is therefore used much more commonly.


No comments:

Post a Comment