ACOS
The ACOS function returns the arc cosine of Expression.
SQL syntax
ACOS(Expression)Parameters
ACOS has the parameter:
| Parameter | Description |
|---|---|
|
|
Operand or column can be any numeric data type or any non-numeric data type that can be implicitly converted to a numeric data type. |
Description
-
Expressionmust be in the range of-1to1.ACOSreturns a value in the range of0topi, expressed in radians. -
If
Expressionis of typeNUMBER, the data type returned isNUMBER. For all other numeric data types, the data type returned isBINARY_DOUBLE. -
If the value of
ExpressionisNULL,NULLis returned.
Example
Use the ACOS function to return the arc cosine of .3.
Command> SELECT ACOS(.3) "Arc cosine of .3" FROM dual; < 1.2661036727794991112593187304122222822 > 1 row found.