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