atn2

Description

Returns the angle (in radians) with specified sine and cosine.

Syntax

atn2(sine, cosine)

Parameters

sine

is the sine of the angle, expressed as a column name, variable, or constant of type float, real, double precision, or any datatype that can be implicitly converted to one of these types.

cosine

is the cosine of the angle, expressed as a column name, variable, or constant of type float, real, double precision, or any datatype that can be implicitly converted to one of these types.

Examples

Example 1

select atn2(.50, .48)
-------------------- 
             0.805803 

Usage

atn2, a mathematical function, returns the angle (in radians) whose sine and cosine are specified.

Standards

ANSI SQL – Compliance level: Transact-SQL extension.

Permissions

Any user can execute atn2.

See also

“Mathematical functions” for general information about mathematical functions.

Functions atan, degrees, radians, tan