|
A signed number means the number follows the 2's complement number representation and the highest order bit represents a negative value (the value depending on the number of bits), giving a range from -2^n to 2^n-1, with n being the number of bits in the type. An unsigned number follows the unsigned number representation, in which there are no "tricks" and you can convert it straight from binary to decimal (all values will be positive); unsigned numbers have a valid range from 0-2^n-1, with n being the number of bits in the type you're using.
If you're unfamiliar with binary numbers and different number representations in computing, learn about them. Learning the theory behind even the simple stuff is always better than blindly using something and not understanding how it works.
|