Signed Number Representation
Signed Magnitude Method
- N = ± (an-1 ... a0.a-1 ... a-m)r is represented as
N = (san-1 ... a0.a-1 ... a-m)rsm, (1.6)
where s = 0 if N is positive and s = r -1 otherwise.
- N = -(15)10
- In binary: N = -(15)10 = -(1111)2 = (1, 1111)2sm
- In decimal: N = -(15)10 = (9, 15)10sm
Complementary Number Systems
- Radix complements (r's complements)
[N]r = rn - (N)r (1.7)
where n is the number of digits in (N)r.
- Positive full scale: rn-1 - 1
- Negative full scale: -rn - 1
- Diminished radix complements (r-1’s complements)