This documentation is related to an older version of Firebolt. For the most current documentation, see Firebolt documentation.
ACOS
Calculates the arc cosine of a value <value>
. ACOS
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