Collections:
Approximate Numeric Literals in SQL Server Transact-SQL
What are approximate numeric literals supported in SQL Server Transact-SQL?
✍: FYIcenter.com
Approximate numeric literals in Transact-SQL are numbers written in
scientific notation formats.
Approximate numeric literals are used to provide values to approximate numeric variables or table columns like LOAT(24), DOUBLE PRECESSION, etc.
Approximate numeric literals are also used in approximate numeric operations in expressions and approximate numeric arguments in functions.
Here are some simple rules on how to write approximate numeric literals:
Here are some example on how to write exact numeric literals:
-- Identical approximate numeric literals PRINT 9E0; PRINT 9E; PRINT 9E+; PRINT 9E-; -- Approximate numeric literal as function argument PRINT SQRT(2.5E+1);
⇒ Binary Literals in SQL Server Transact-SQL
⇐ Exact Numeric Literals in SQL Server Transact-SQL
2017-05-05, 2741🔥, 0💬
Popular Posts:
How To Get the Definition of a View Out of the SQL Server in SQL Server? If you want get the definit...
What Privilege Is Needed for a User to Delete Rows from Tables in Another Schema in Oracle? For a us...
What Are Out-of-Range Errors with DATETIME values in SQL Server Transact-SQL? When you enter DATETIM...
What To Do If the StartDB.bat Failed to Start the XE Instance in Oracle? If StartDB.bat failed to st...
How to download and install Microsoft .NET Framework Version 2.0 in SQL Server? .NET Framework Versi...