COS
The COS function returns the cosine of the input argument.
Syntax
COS (argument)
Remarks
The table lists the valid input argument data types and the resulting output data types.
|
Data Type of Argument |
Output Type |
Notes |
|
BIGINT, DECIMAL, FLOAT, INTEGER, NUMERIC, REAL, SMALLINT, TINYINT |
FLOAT |
Input argument is in radians. |
|
NULL |
NULL |
|
Example
SELECT COS(PI()/6);
The result is 0.8660254037844387.