ÚÑÈí  Mark    Scores  Data

 

  Previous (Page 20)Next (Page 22)
Sign and Magnitude Method



This method uses the most significant bit (the one on the far left) to represent the sign of a number; if 0, the number is positive, if 1, the number is negative. The rest of the bits are used to determine the number’s decimal magnitude. This method reverses the sign of a number by reversing the sign bit (set it to 1 if 0 and to 0 if 1). A drawback of this method is that the number 0 is represented using two different bit combinations.  
Page 21 of 23

Previous (Page 20)Next (Page 22)