Re: sbyte understanding needed
- From: garyusenet@xxxxxxxxx
- Date: 25 Jan 2006 05:59:00 -0800
For anyone else seeking the answer to the question I asked - I think
i've managed to find the answer by following the links the people in
this group kindly contributed.
Please - if anyone is reading this, can you confirm or refute what i'm
about to say!
The reason the highest negative number has a magnitude greater by 1,
than the highest positive number is as follows.
When all seven bits are off including the most significant bit (which
is used to denote the sign of the number) the number is read as zero
(i.e. the sign is positive, and the number is 0 )
BUT.. when the most significant bit is on and all the other bits are
off, this number is taken as the highest negative number available, as
(-0 doesn't make sense) - so in this case its -128, which is why the
maximum negative number has a magnitude greater than the highest
positive number by one.
=)
.
- Follow-Ups:
- Re: sbyte understanding needed
- From: Scott C
- Re: sbyte understanding needed
- References:
- sbyte understanding needed
- From: garyusenet
- Re: sbyte understanding needed
- From: Nick Hounsome
- sbyte understanding needed
- Prev by Date: Re: Self-restarting application
- Next by Date: Re: Self-restarting application
- Previous by thread: Re: sbyte understanding needed
- Next by thread: Re: sbyte understanding needed
- Index(es):
Relevant Pages
|