This documentation is related to an older version of Firebolt. For the most current documentation, see Firebolt documentation.
COS
Trigonometric function that calculates the cosine of a specific value.
Syntax
COS(<value>)
Parameters
Parameter | Description | Supported input types |
---|---|---|
<value> | The value that the COS function is applied to | DOUBLE PRECISION |
Return Type
DOUBLE PRECISION
Example
The following example returns the cosine of 180
:
SELECT
COS(180);
Returns: -0.5984600690578581