Purpose
The COS function returns the cosine of an angle specified by the parameter. The return value is in the range [-1,1].
Syntax
COS(x)
Parameters
x specifies a numeric value or an expression that can be implicitly converted to a numeric value. The value is an angle in radians.
Return type
If the data type of parameter x is BINARY_FLOAT, the function returns a value of the BINARY_DOUBLE data type. Otherwise, the function returns a value of the same numeric data type as parameter x.
Examples
Return the cosine of a 0-degree angle.
obclient> SELECT COS(0) FROM DUAL;
+--------+
| COS(0) |
+--------+
| 1 |
+--------+
1 row in set
