Does it make sense to you that pattern 0111 1111 1111 1111 is BOTH -32767 AND 32767?Signed integers
Code:0111 1111 1111 1111 -32767 0111 1111 1111 1110 -32766 0111 1111 1111 1110 32766 0111 1111 1111 1111 32767
How can that be?
16-bit 2's complement signed integers
Code:
1000 0000 0000 0000 -32,768
1000 0000 0000 0001 -32,767
...
1111 1111 1111 1110 - 2
1111 1111 1111 1111 - 1
0000 0000 0000 0000 0
0000 0000 0000 0001 + 1
0000 0000 0000 0010 + 2
...
0111 1111 1111 1110 +32766
0111 1111 1111 1111 +32767
