DEGREES (Transact-SQL)
返回以弧度指定的角的相应角度。
语法
DEGREES ( numeric_expression )
返回代码值
返回与 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)