RADIANS (Azure Cosmos DB)RADIANS (Azure Cosmos DB)

适用于: SQL API

返回输入的数值表达式(度)的弧度。Returns radians when a numeric expression, in degrees, is entered.

语法Syntax

RADIANS (<numeric_expr>)  

参数Arguments

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

返回类型Return types

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

示例Examples

以下示例采用几个角度作为输入并返回其对应的弧度值。The following example takes a few angles as input and returns their corresponding radian values.

SELECT RADIANS(-45.01) AS r1, RADIANS(-181.01) AS r2, RADIANS(0) AS r3, RADIANS(0.1472738) AS r4, RADIANS(197.1099392) AS r5  

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

[{  
    "r1": -0.7855726963226477,  
    "r2": -3.1592204790349356,  
    "r3": 0,  
    "r4": 0.0025704127119236249,  
    "r5": 3.4402174274458375  
}]  

备注Remarks

此系统函数不会使用索引。This system function will not utilize the index.

后续步骤Next steps