DEGREES (Azure Cosmos DB)DEGREES (Azure Cosmos DB)

返回指定角度(弧度)的相应角度(度)。Returns the corresponding angle in degrees for an angle specified in radians.

语法Syntax

DEGREES (<numeric_expr>)  

参数Arguments

numeric_exprnumeric_expr
是一个数值表达式。Is a numeric expression.

返回类型Return types

返回一个数值表达式。Returns a numeric expression.

示例Examples

以下示例返回 PI/2 弧度表示的角度的度数。The following example returns the number of degrees in an angle of PI/2 radians.

SELECT DEGREES(PI()/2) AS degrees  

下面是结果集。Here is the result set.

[{"degrees": 90}]  

后续步骤Next steps