Returns the angle in radians whose tangent is between the two given float expressions (also called arctangent).
ATN2(float_expression, float_expression)
float
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)
CAST and CONVERT | Mathematical Functions |
float and real |