Precisely. The OP was asking about using a signed
representation for the *fraction* as well as the integer
part of a fixed-point number, and I was trying to show
why that doesn't make a lot of sense.
Not intentionally. I'm a little hard-pressed
to understand why my attempt to enumerate
a few values in conventional 2.8 fixed-point
signed representation is upsetting you so
The problem is that you seem to be saying that there is nothing
different about fixed point integer vs. fraction and yet, you describe
the integer as signed and the fraction as not. I can describe
integers in the exact same terms you are describing fixed point by
talking about the integer part above 8 and the integer part below 8.
It is just simple math...
10 11 = -8 + (2 + 1) = 5
|| ||_ 1
|| |__ 2
||
||____ no 4
|_____ 8
The way you are looking at it, the separation really is not at the
fixed point, it is at the ***sign bit*** -2**(n-1) + ...
The definition of 2's comp of k is 2**n - k. You talk about
interpreting the bits with odd weights, i.e. -2**(n-1) * bit (n-1)
instead. Yes, this works, but this is not the definition of 2's
complement.
1011 = -16 + 8 + 2 + 1 = 5
||||_ 1
|||__ 2
||___ no 4
|____ 8
By using this altered notation, you make the integer and fraction
*appear* different.
10.11 = -2 + 0.5 + 0.25 = -1.25 = -5/4
|| ||_ .25
|| |__ .5
||____ no 1
|_____ 2
or
10.11 = -4 + 2 + (0.5 + 0.25) = -1.25
|| ||_ .25
|| |__ .5
||____ no 1
|_____ 2
Notice that I treat *all* the bits as positive values to be added to
the -2**n value. So the full number is a ***single*** 2's complement
entity. It makes no *sense* to talk about the integer and fraction as
separate notations.
Obviously we are saying the same conclusion, that there is no need to
introduce any special handling of the fraction vs. the integer. But
in the explanation of this conclusion, you *do* exactly that, treat
the integer and fraction differently!
Rick