Skip to main content

ACOS

Returns the arc cosine of x, that is, the value whose cosine is x. Returns NULL if x is not in the range -1 to 1.

Syntax

ACOS(x)

Arguments

ArgumentsDescription
xThe angle, in radians.

Return Type

A Float64 data type value.

Examples

SELECT ACOS(1);
+---------+
| ACOS(1) |
+---------+
| 0 |
+---------+

SELECT ACOS(1.0001);
+--------------+
| ACOS(1.0001) |
+--------------+
| NULL |
+--------------+