Calculate and return the arctangent of two specified values.
SELECT ATN2(0.50, 1); |
The ATN2() function computes the arctangent of two numbers.
ATN2(a, b) |
Parameter |
Description |
a,b |
Required. Two numerical values for which the arctangent will be calculated. |
Works in: |
Available in SQL Server from 2008 onward, as well as in Azure SQL Database, Azure SQL Data Warehouse, and Parallel Data Warehouse. |
Calculate and return the arctangent of two specified numeric values.
SELECT ATN2(-0.8, 2); |