Logo 
Search:

SQL Server Articles

Submit Article
Home » Articles » SQL Server » Math FunctionsRSS Feeds

ATN2 Function

Posted By: Sarita Patel     Category: SQL Server     Views: 2054

This article explains ATN2 function of sql server with examples.

ATN 2 is used to get angle in radians whose tangent is between the two given float expressions. It also known as arctangent.


Syntax of ATN2 Function :

ATN2 (float_expression1,float_expression2)

float_expression1 is an expression of float type.

float_expression2 is an expression of float type.

Return type of ATN2 is float data type.



Examples of ATN2 Function :

Example 1 : Use of ATN2 function in select clause

SELECT ATN2(-25.234,25)

Output
-0.790056329331154

Above example returns angle in radians for specified values.
  
Share: 

 
 
 

Didn't find what you were looking for? Find more on ATN2 Function Or get search suggestion and latest updates.

Sarita Patel
Sarita Patel author of ATN2 Function is from United States.
 
View All Articles

Related Articles and Code:


 
Please enter your Comment

  • Comment should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].

 
No Comment Found, Be the First to post comment!