HCBBS Forum (English)
Submit Chemical Projects / Find Solutions
Amplify Your Requirements on a Broader Chemical Platform *Engineering · Technology · Equipment · Solutions*
Submit Request

Why is the 16-bit counting range -32768 to 32767?

2009-03-27View Original

Thread Content

Instead of -32767 to 32768 or -32767 to 32767, this post was last edited by we11we11 on 2009-3-27 16:15 ]
Reply #22009-03-27
This number is derived from 2 raised to the 16th power.
Reply #32009-03-27
The 16th power of 2 should be 65536. I know that the highest bit is the sign bit, so it is 2 raised to the 15th power. How to determine the key positive and negative range? This post was last edited by we11we11 on 2009-3-27 16:16 ]
Reply #42009-03-27
When the highest bit is 1, it is negative, and when it is 0, it is positive.
Reply #52009-03-30
This count is stored in two's complement. The highest bit is the sign bit. The actual value of a positive number is itself. The true value of a negative number is to invert the binary number and add one, so 100...0 = -2 to the 16th power.
Reply #62009-03-30
I know that the negation of 1000 0000 0000 0000 is 0111 1111 1111 1111 plus 1 is 1000 0000 0000 0000. Adding the negative sign is -32768 (that is, -2 to the 15th power)
Reply #72009-03-31
Hey hey, need some warmth* One's complement: lol

Submit a Project

**Looking for Chemical Technology, Equipment & Solutions?** No Registration Required Broader Platform Exposure | Global Chemical Service Provider Connections

Submit Request — Free Consultation

Disclaimer

This is an automated machine translation of the original thread. Some technical terms may have inaccuracies; the original text shall prevail. Click "View Original" at the top right to access the source page, which supports IP-based automatic real-time language translation. Please watch out for contact details and sales inducements to prevent fraud. All content and translations are for reference only, representing solely the poster's personal views. For enquiries, email service@hcbbs.com.