What Are Approximate Numeric Data Types in MS SQL Server?
Submitted by: AdministratorApproximate numeric data types are used to store numeric values with floating decimal points. SQL Server 2005 supports the following approximate numeric data types:
* FLOAT - Floating point values with a fixed number of bits n for the mantissa part defined as FLOAT(n). FLOAT values are in the range of -1.79E+308 to -2.23E-308, 0 and 2.23E-308 to 1.79E+308.
* REAL - Same as FLOAT(24), also called single precision floating point numbers.
The DOUBLE PRECISION data type is supported as a synonym of FLOAT(53). Here are some good examples of approximate numeric values:
PRINT 9.22337203685e+010; -- FLOAT(53)
PRINT 9.22337e+010; -- FLOAT(24)
GO
Submitted by: Administrator
* FLOAT - Floating point values with a fixed number of bits n for the mantissa part defined as FLOAT(n). FLOAT values are in the range of -1.79E+308 to -2.23E-308, 0 and 2.23E-308 to 1.79E+308.
* REAL - Same as FLOAT(24), also called single precision floating point numbers.
The DOUBLE PRECISION data type is supported as a synonym of FLOAT(53). Here are some good examples of approximate numeric values:
PRINT 9.22337203685e+010; -- FLOAT(53)
PRINT 9.22337e+010; -- FLOAT(24)
GO
Submitted by: Administrator
Read Online MS SQL Server Job Interview Questions And Answers
Top MS SQL Server Questions
☺ | How To Start SQL Server Browser Service? |
☺ | How To Convert a Numeric Expression from One Data Type to Another? |
☺ | How To Execute the Cursor Queries with "OPEN" Statements? |
☺ | What Happens If Strings Are Casted into Wrong Code Pages in MS SQL Server? |
☺ | How To Test ODBC DSN Connection Settings? |
Top Databases Programming Categories
☺ | RDBMS Interview Questions. |
☺ | SQL Interview Questions. |
☺ | SSRS Interview Questions. |
☺ | Database Administrator (DBA) Interview Questions. |
☺ | Sybase Interview Questions. |