Two's-Complement, Integer Fixed-Point Numbers
Let denote the number of bits. Then the value of a two's
complement integer fixed-point number can be expressed in terms of its
bits
as
We visualize the binary word containing these bits as
![$\displaystyle x = [b_0\, b_1\, \cdots\, b_{N-1}]
$](http://www.dsprelated.com/josimages_new/mdft/img1976.png)


![$\displaystyle 3 =[ 0 1 1 ] = - 0\cdot 4 + 1\cdot 2 + 1 \cdot 1
$](http://www.dsprelated.com/josimages_new/mdft/img1978.png)
![$\displaystyle -3 =[ 1 0 1 ] = - 1\cdot 4 + 0\cdot 2 + 1 \cdot 1
$](http://www.dsprelated.com/josimages_new/mdft/img1979.png)
The most-significant bit in the word, , can be interpreted as the
``sign bit''. If
is ``on'', the number is negative. If it is
``off'', the number is either zero or positive.
The least-significant bit is . ``Turning on'' that bit adds 1 to
the number, and there are no fractions allowed.
The largest positive number is when all bits are on except , in
which case
. The largest (in magnitude) negative number is
, i.e.,
and
for all
. Table G.4 shows
some of the most common cases.
|
Next Section:
Signal Energy and Power
Previous Section:
Two's Complement Fixed-Point Format