how many numbers in a smallint
The range of an int data type is -2,147,483,648 to 2,147,483,647. Smallint represents an integer value that can be stored in 2 bytes. 2^(n-1) is the formula to find the maximum of a Smallint data type. In the preceding formula N is the size of the data type. The ^ operator calculates the power of the value.