ATAN2 Function [Numeric]

Returns the arc-tangent, in radians, of the ratio of two numbers.

Syntax

ATAN2numeric-expression1, numeric-expression2 )

Parameters

Parameter

Description

numeric-expression1

The numerator in the ratio whose arc tangent is calculated.

numeric-expression2

The denominator in the ratio whose arc-tangent is calculated.

Returns

DOUBLE

Example

The following statement returns the value 0.00866644968879073143:

SELECT ATAN2( 0.52, 060 ) FROM iq_dummy

Standards and Compatibility

  • SQL—Vendor extension to ISO/ANSI SQL grammar.

  • Sybase—ATAN2 is not supported by Adaptive Server Enterprise.

Related reference
COS Function [Numeric]
ATAN Function [Numeric]
ASIN Function [Numeric]
ACOS Function [Numeric]
COT Function [Numeric]
SIN Function [Numeric]
TAN Function [Numeric]