當(dāng)給出以弧度為單位的角度時(shí),返回相應(yīng)的以度數(shù)為單位的角度。
DEGREES ( numeric_expression )
numeric_expression
精確數(shù)字或近似數(shù)字?jǐn)?shù)據(jù)類型類別的表達(dá)式(bit 數(shù)據(jù)類型除外)。
返回與 numeric_expression 相同的類型。
下例以 PI/2 弧度的角度返回度數(shù)。
SELECT 'The number of degrees in PI/2 radians is: ' +
CONVERT(varchar, DEGREES((PI()/2)))
GO
下面是結(jié)果集:
The number of degrees in PI/2 radians is 90相關(guān)文章
(1 row(s) affected)