COS
Trigonometric function that calculates the cosine of a specific value in radians.
Syntax
COS(<value>)
Parameters
Parameter | Description | Supported input types |
---|---|---|
<value> | The value that determines the returned cosine in radians. | DOUBLE PRECISION |
Return Type
COS
returns a value of type DOUBLE PRECISION
.
Example
The following query calculates the cosine of 1.57 radians, which is approximately pi/2:
SELECT COS(1.57) as result;
Returns
result (DOUBLE PRECISION) |
---|
0.0007963267107332633 |