Author: Stan Eisenstat
Subject: Re: [Cs323] one's complement
Date: Wednesday, 07 Oct 2020, 09:23:46
> Message Posted By: Unknown
>
> Isnt "-2^(m-1) < x < +2^(m-1)" only have 2^m-1 distinct numbers whereas c
> = 2^m?
>
> From the notes, c=2^m-1 has distribution -2^(m-1) < x < +2^(m-1)
The original question and my reply were:
> What is an example of the distribution of numbers that are representable
> if c=2^m for one's complement?
-2^(m-1) < x < +2^(m-1)
That answer is correct for ones' (note that the
apostrophe follows the s) complement, where c = 2^m-1.
For two's (note that the apostrophe precedes the s)
complement c = 2^m, not 2^m-1, and the standard range
is -2^(m-1) <= x < +2^(m-1).
--Stan-
PREV
INDEX
NEXT