ATN2 (SQL Server Compact)
Returns the angle, in radians, whose tangent is the quotient of two given float expressions. Also referred to as arctangent.
Syntax
ATN2 ( float_expression, float_expression )
Arguments
- float_expression
An expression of the type float, or of types that can be implicitly converted to float.
Return Value
float
Example
The following example returns the arctangent of the two values TAN(0) and TAN(90), which is the value pi.
SELECT ATN2(TAN(0), TAN(90)) 'Arc tangent'