DEGREES (Transact-SQL)
返回以弧度指定的角的相应角度。
语法
DEGREES ( numeric_expression )
参数
numeric_expression
精确数字或近似数字数据类型类别(bit 数据类型除外)的表达式。
返回代码值
Returns the same type as numeric_expression.
示例
以下示例返回 PI/2 弧度角的度数。
SELECT 'The number of degrees in PI/2 radians is: ' +
CONVERT(varchar, DEGREES((PI()/2)));
GO
下面是结果集:
The number of degrees in PI/2 radians is 90
(1 row(s) affected)