Get started
Load & manage data
Work with data
Administration
Reference & resources
Updated Sep 28, 2023
Send us feedback
atan2
Applies to: Databricks SQL Databricks Runtime
Returns the angle in radians between the positive x-axis of a plane and the point specified by the coordinates (exprX, exprY).
exprX
exprY
atan2(exprY, exprX)
exprY: An expression that evaluates to a numeric.
exprX: An expression that evaluates to a numeric.
A DOUBLE.
> SELECT atan2(0, 0); 0.0
atan function
acos function
asin function
tan function