ACOS Function

Returns the arccosine in radians.

Category: Trigonometric
Alias: ARCOS
Returned data type: DOUBLE

Syntax

ACOS(expression)

Arguments

expression

specifies any valid SQL expression that evaluates to a numeric value.

Range -1 to 1
Data type DOUBLE
See <sql-expression>
FedSQL Expressions

Details

The ACOS function returns the arccosine (inverse cosine) of the argument. The value that is returned is specified in radians.

Example

The following statements illustrate the ACOS function:
Statements
Results
select acos(1);
0
select arcos(0);
1.570796
select acos(-0.5);
2.094395