acos

Description

Returns the angle (in radians) whose cosine is specified.

Syntax

acos(cosine)

Parameters

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

Returns the angle whose cosine is 0.52:

select acos(0.52)

-------------------- 
           1.023945

Usage

Standards

SQL92 – Compliance level: Transact-SQL extension.

Permissions

Any user can execute acos.

See also

Functions cos, degrees, radians