Click to Rate and Give Feedback
MSDN
MSDN Library
SQL Server
SQL Server 2008
Database Engine
Technical Reference
 ATAN (Transact-SQL)
Community Content
In this section
Statistics Annotations (0)
Collapse All/Expand All Collapse All
Other versions are also available for the following:
ATAN (Transact-SQL)

Returns the angle in radians whose tangent is a specified float expression. This is also called arctangent.

Topic link iconTransact-SQL Syntax Conventions

ATAN (float_expression )
float_expression

Is an expression of the type float or of a type that can be implicitly converted to float.

float

The following example takes a float expression and returns the ATAN of the specified angle.

SELECT 'The ATAN of -45.01 is: ' + CONVERT(varchar, ATAN(-45.01))
SELECT 'The ATAN of -181.01 is: ' + CONVERT(varchar, ATAN(-181.01))
SELECT 'The ATAN of 0 is: ' + CONVERT(varchar, ATAN(0))
SELECT 'The ATAN of 0.1472738 is: ' + CONVERT(varchar, ATAN(0.1472738))
SELECT 'The ATAN of 197.1099392 is: ' + CONVERT(varchar, ATAN(197.1099392))
GO

Here is the result set.

                                                         
------------------------------- 
The ATAN of -45.01 is: -1.54858                       

(1 row(s) affected)

-------------------------------- 
The ATAN of -181.01 is: -1.56527                       

(1 row(s) affected)

-------------------------------- 
The ATAN of 0 is: 0                              

(1 row(s) affected)

---------------------------------- 
The ATAN of 0.1472738 is: 0.146223                       

(1 row(s) affected)

                                                         
----------------------------------- 
The ATAN of 197.1099392 is: 1.56572                        

(1 row(s) affected)
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2012 Microsoft. All rights reserved. Terms of Use | Trademarks | Privacy Statement
Page view tracker