bugl
bugl
HomeLearnPatternsSearch
HomeLearnPatternsSearch

Loading lesson path

Learn/SQL/SQL References
SQL•SQL References

SQL Server ATN2() Function

Concept visual

SQL Server ATN2() Function

Pointer walk
two pointers
leftright102132436485116
left=0
right=6
1
3

Start at both ends

Example

Return the arc tangent of two values:

SELECT ATN2(0.50, 1);

Definition and Usage

The ATN2() function returns the arc tangent of two numbers.

Syntax

Atn2(

a, b )

Parameter Values

Parameter

Description a, b Required. Two numeric values to calculate the arc tangent of

Technical Details

Works in:

SQL Server (starting with 2008), Azure SQL Database, Azure SQL Data Warehouse, Parallel Data Warehouse

More Examples

Example

Return the arc tangent of two values:

SELECT ATN2(-0.8, 2);

Previous

❮ SQL Server Functions

Next

Previous

SQL Server ATAN() Function

Next

SQL Server AVG() Function