Purpose
ACOS() returns an arc cosine in the range of [0, π] in radians.
Syntax
ACOS(num_expression)
Parameters
| Parameter | Description |
|---|---|
| num_expression | An expression of the NUMBER type or any type that can be implicitly converted to the NUMBER type. The value falls in the range of [-1, 1]. |
Return type
The return type is NUMBER.
Examples
The following ACOS function returns 0.3.
obclient> SELECT ACOS(0.3) "acos_test" FROM DUAL;
+------------------------------------------+
| acos_test |
+------------------------------------------+
| 1.26610367277949911125931873041222227514 |
+------------------------------------------+
1 row in set