The definition of the sign bit is:
The integer represented in (n+1) bit sign-magnitude is
The range of values for an (n+1) bit sign-magnitude integer is to .
The format of an 8-bit sign-magnitude number is:
Some examples of 8-bit sign-magnitude numbers are shown below:
The range of an 8-bit sign-magnitude integer is -127 to +127.
There are different sign-magnitude representations for +0 and -0.
Sign reversal and absolute value operations are easy using sign-magnitude representation.
Adding the negative of a number is not the same as subtraction in sign-magnitude. Different operations must be defined for addition and subtraction with sign-magnitude numbers.