ATAN2
The ATAN2 function returns the arc tangent of Expression1 and Expression2.
SQL syntax
ATAN2(Expression1,Expression2)Parameters
ATAN2 has the parameters:
| Parameter | Description |
|---|---|
|
|
Operand or column can be any numeric data type or any non-numeric data type that can be implicitly converted to a numeric data type. |
|
|
Operand or column can be any numeric data type or any non-numeric data type that can be implicitly converted to a numeric data type. |
Description
-
Expression1can be in an unbounded range.ATAN2returns a value in the range of-pitopidepending on the signs ofExpression1andExpression2, expressed in radians. -
If
Expressionis of typeNUMBER, the data type returned isNUMBER. For all other numeric data types, the data type returned isBINARY_DOUBLE. -
If the value of
Expression1orExpression2isNULL, or the value of bothExpression1andExpression2areNULL,NULLis returned.
Example
Use the ATAN2 function to return the arc tangent of .3 and .2.
Command> SELECT ATAN2(.3,.2) "Arc tangent of .3 and .2" FROM dual; < .9827937232473290679857106110146660144997 > 1 row found.