On Tue, Aug 21, 2001 at 09:24:06AM -0400, Bob Showalter wrote:
> a signed char is an integer data type with a size of one byte. 7 bits are
> magnitude and 1 bit for sign (twos-complement). The range is -128 to +127.
Technically, "twos complement" ne "sign and magnitude". The difference,
in 8 bits, is with 10000000, which is either 0 or -128, depending on
your encoding. Sign and magnitude has two patterns for 0 and a
symmetric range. Twos compliment generally makes the hardware easier.
--
Paul Johnson - [EMAIL PROTECTED]
http://www.pjcj.net
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]