Cloud

acosd

The acosd() function returns the inverse cosine (arccosine) of a specified argument, expressed in degrees. See also acos() to return the result in radians.

Syntax

ACOSD(x)

Arguments

  • x: A number of type real or double precision, between -1 and 1 inclusive.

Return type

Same as the input type (real or double precision).

Examples

Basic usage

SELECT ACOSD(0.5);
 acosd
-------
    60
(1 row)

Boundary argument

SELECT ACOSD(1);
 acosd
-------
     0
(1 row)