Home > Back-end >  Why said 16 short type 1 is the result of the negative one?
Why said 16 short type 1 is the result of the negative one?

Time:10-04

Repeatedly plus 15 zero type is short of the minimum yes ah (ignore the sign bit), so why is 16 a negative one?

CodePudding user response:

Signed is the highest number of 1 is negative.
1000, 0000, 0000, 0000==- 32768
1111, 1111, 1111, 1111==1
0111, 1111, 1111, 1111==32767
See don't understand?

CodePudding user response:

Because sixteen zero is zero, sixteen zero minus one is sixteen, so short 16 a is negative,

CodePudding user response:

refer to the second floor lhylhy response:
because sixteen zero is zero, sixteen zero minus one is sixteen, so short 16 a is negative,

This explanation is very good!

CodePudding user response:

This is the basis of the binary principle, look to the complement, the concept of radix-minus-one complement

CodePudding user response:

Thank you for a few friends upstairs!
  • Related