當給出以弧度為單位的角度時,返回相應的以度數為單位的角度。
DEGREES ( numeric_expression )
numeric_expression
精確數字或近似數字數據類型類別的表達式(bit 數據類型除外)。
返回與 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)