T Sql 简明教程
T-SQL - Numeric Functions
MS SQL Server数值函数可以对数值数据进行操作,并将返回数值数据。
MS SQL Server numeric functions can be applied on numeric data and will return numeric data.
以下是带示例的数值函数列表。
Following is the list of Numeric functions with examples.
ACOS()
反正弦值将作为指定数值表达式的输出。
Arc cosine value will come as output for the specified numeric expression.
ATAN()
弧正切值将作为指定的数字表达式的输出。
Arc tangent value will come as output for the specified numeric expression.
ATN2()
特定数值表达式的值将作为输出值以所有象限上的弧切值给出的。
Arc tangent value in all four quadrants will come as output for the specified numeric expression.
Example
以下查询将给出一个 0 的所有四个象限内的弧切值。
The following query will give the arc tangent value in all four quadrants of 0.
Select ATN2(0, -1)
可以将 CUSTOMERS 表视为包含以下记录。
Consider the CUSTOMERS table having the following records.
ID NAME AGE ADDRESS SALARY
1 Ramesh 32 Ahmedabad 2000.00
2 Khilan 25 Delhi 1500.00
3 kaushik 23 Kota 2000.00
4 Chaitali 25 Mumbai 6500.00
5 Hardik 27 Bhopal 8500.00
6 Komal 22 MP 4500.00
7 Muffy 24 Indore 10000.00
BETWEEN()
如果给出的两个表达式之间存在值域,它将成为一个输出。
If the values exist between given two expressions then those will be come as output.
CEILING()
四舍五入小数后的给定值将作为输出,这将是下一个最高值。
Given value will come as output after rounding the decimals which is the next highest value.