Curriculum
Course: SQL
Login

Curriculum

SQL

SQL References

0/80

MySQL Functions

0/139

SQL Server Functions

0/84

SQL Quick Ref

0/1
Text lesson

ATN2

Example

Calculate and return the arctangent of two specified values.

SELECT ATN2(0.501);

Definition and Usage

The ATN2() function computes the arctangent of two numbers.

Syntax

ATN2(a, b)

Parameter Values

Parameter

Description

a,b

Required. Two numerical values for which the arctangent will be calculated.

Technical Details

Works in:

Available in SQL Server from 2008 onward, as well as in Azure SQL Database, Azure SQL Data Warehouse, and Parallel Data Warehouse.

More Examples

Example

Calculate and return the arctangent of two specified numeric values.

SELECT ATN2(-0.82);