Exact Numeric Data Types

Data TypeLower limitUpper limitMemory
bigint−2^63 (−9,223,372, 036,854,775,808)2^63−1 (−9,223,372, 036,854,775,807)8 bytes
int−2^31 (−2,147, 483,648)2^31−1 (−2,147, 483,647)4 bytes
smallint−2^15 (−32,767)2^15 (−32,768)2 bytes
tinyint02551 byte
bit011 byte/8bit column
decimal (p,s)−10^38+110^381−15 to 17 bytes
numeric−10^38+110^381−15 to 17 bytes
money−922,337, 203, 685,477.5808+922,337, 203, 685,477.58078 bytes
smallmoney−214,478.3648+214,478.36474 bytes
For decimal and numeric, one may specify both “precision” and “scale,” that is, how long can the number be (including digits after the decimal, the scale)?

Approximate numeric data types

The approximate numeric data type stores floating point numeric data. They are often used in scientific calculations.

Data TypeLower limitUpper limitMemoryPrecision
float(n)−1.79E+3081.79E+308Depends on the value of n7 Digit
real−3.40E+383.40E+384 bytes15 Digit

Back to Data Types