Link Search Menu Expand Document

ACOS

Calculates the arc cosine of a value. Returns NULL if <value> is higher than 1.

Syntax

ACOS(<value>)

Parameters

Parameter Description Supported input types
<value> The number that the arc cosine value function is applied to DOUBLE PRECISION

Return Type

DOUBLE PRECISION

Example

The following example returns the arc cosine of 0.5:

SELECT
    ACOS(0.5);

Returns: 1.0471975511965979