Well it has to do with the bit-ammount an iteger value is Saved.
As you know, a PC can just use the binary number system to save values.
so int values are saved within two byte which are 16 bit
from 00000000 00000000 up to 11111111 11111111.
so the highest value can be 2^16-1 = 65535
Intergervalues are Signed, so you need on bit as the sign, which results that the highest number is 01111111 1111111
that is 32767
|