DEGREES (Azure Cosmos DB)

APPLIES TO: SQL API

Returns the corresponding angle in degrees for an angle specified in radians.

Syntax

DEGREES (<numeric_expr>)  

Arguments

numeric_expr
Is a numeric expression.

Return types

Returns a numeric expression.

Examples

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}]  

Remarks

This system function will not utilize the index.

Next steps