ABS
ALL
AND
ANY
AVG
bit
COS
COT
DAY
EXP
GO
IN
LEN
LOG
MAX
MIN
NOT
OR
PI
SET
SIN
STR
SUM
TAN
USE
VAR
Expand Minimize
0 out of 1 rated this helpful - Rate this topic

ATN2

SQL Server 2000

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

float and real

Mathematical Functions

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.