ATN2 (Azure Cosmos DB)

APPLIES TO: SQL API

Returns the principal value of the arc tangent of y/x, expressed in radians.

Syntax

ATN2(<numeric_expr>, <numeric_expr>)  

Arguments

numeric_expr
Is a numeric expression.

Return types

Returns a numeric expression.

Examples

The following example calculates the ATN2 for the specified x and y components.

SELECT ATN2(35.175643, 129.44) AS atn2  

Here is the result set.

[{"atn2": 1.3054517947300646}]  

Remarks

This system function will not utilize the index.

Next steps