On Dec 7, 4:03*pm, chang <(E-Mail Removed)> wrote:

> On Dec 7, 3:44*pm, Willem <(E-Mail Removed)> wrote:

>

>

>

> > chang wrote:

>

> > ) I got this idea but why this kind of system is there: -1

> > ) representating in this format 11111111111111111111111111111111?

> > ) Actually what is defination lies in this?

>

> > Simple. *Look at this calculation of zero minus one, in binary.

> > (I use 4 bits to keep it simple)

>

> > * 0000

> > * 0001 -

> > * ----

> > * * *1 (carry the one)

>

> > * 0000

> > * 0001 -

> > * * 1 *(this is the carry)

> > * ----

> > * * 11 (carry the one again)

>

> > * 0000

> > * 0001 -

> > * *1 *(this is the carry)

> > * ----

> > * *111 (carry the one again)

>

> > * 0000

> > * 0001 -

> > * 1 *(this is the carry)

> > * ----

> > * 1111 (carry the one again)

>

> > * 0000

> > * 0001 -

> > *1 * * (this carry can't be used, it's a so-called carry overflow)

> > * ----

> > * 1111

>

> > So, the result of zero minus one, in binary, is a row of '1' bits.

>

> > (From this, it should be easy to determine what -2 is in binary.)

>

> > SaSW, Willem

> > --

> > Disclaimer: I am in no way responsible for any of the statements

> > * * * * * * made in the above text. For all I know I might be

> > * * * * * * drugged or something..

> > * * * * * * No I'm not paranoid. You all think I'm paranoid, don't you !

> > #EOT

>

> Thanks .

>

> But i am actually looking for why (-1) is represented as 0XFFFFFFFF or

> in binary all bits will be *1!!!

>

> Please guide me to know about this.

>

> Chang
http://en.wikipedia.org/wiki/Two%27s_complement