ATN2 (T-SQL)

Returns the angle in radians whose tangent is between the two given float expressions (also called arctangent).

Syntax

ATN2(float_expression, float_expression)

Arguments
float_expression
Is an expression of the float data type.
Return Types

float

Examples

This example calculates the ATN2 for the given angles.

DECLARE @angle1 float

DECLARE @angle2 float

SET @angle1 = 35.175643

SET @angle2 = 129.44

SELECT 'The ATN2 of the angle is: ' + CONVERT(varchar,ATN2(@angle1,@angle2 ))

GO

  

Here is the result set:

The ATN2 of the angle is: 0.265345                      

  

(1 row(s) affected)

  

See Also
CAST and CONVERT Mathematical Functions
float and real  

  


(c) 1988-98 Microsoft Corporation. All Rights Reserved.