Interviewer And Interviewee Guide

MS SQL Server Interview Question:

What Are Approximate Numeric Data Types in MS SQL Server?

Submitted by: Administrator
Approximate 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

Read Online MS SQL Server Job Interview Questions And Answers
Copyright 2007-2024 by Interview Questions Answers .ORG All Rights Reserved.
https://InterviewQuestionsAnswers.ORG.