SQL/MX 2.x Reference Manual (G06.24+, H06.03+)

SQL/MX Functions and Expressions
HP NonStop SQL/MX Reference Manual523725-004
9-15
ATAN2 Function
ATAN2 Function
The ATAN2 function returns the arctangent of the x and y coordinates, specified by two
numeric value expressions, as an angle expressed in radians.
ATAN2 is an SQL/MX extension.
numeric-expression-x,numeric-expression-y
are SQL numeric value expressions that specify the value for the x and y
coordinate arguments of the ATAN2 function. See Numeric Value Expressions on
page 6-50.
Examples of ATAN2
This function returns the value 2.66344329881899600E+000, or approximately
2.6634:
ATAN2 (1.192,-2.3)
ATAN2 (numeric-expression-x,numeric-expression-y)