float and real (Transact-SQL)
SQL Server 2008 R2
Approximate-number data types for use with floating point numeric data. Floating point data is approximate; therefore, not all values in the data type range can be represented exactly.
Note |
|---|
The ISO synonym for real is float(24). |
Data type | Range | Storage |
|---|---|---|
float | - 1.79E+308 to -2.23E-308, 0 and 2.23E-308 to 1.79E+308 | Depends on the value of n |
real | - 3.40E + 38 to -1.18E - 38, 0 and 1.18E - 38 to 3.40E + 38 | 4 Bytes |
Note