Skip to content

Latest commit

 

History

History
34 lines (26 loc) · 638 Bytes

File metadata and controls

34 lines (26 loc) · 638 Bytes
description
Computes the cosine of a value in radians.

COS

Syntax

COS(numeric_expression NUMERIC) → FLOAT

  • numeric_expression: The number in radians. This must be DOUBLE, INTEGER, or FLOAT.

Examples

{% code title="COS example" %}

SELECT COS(0)
-- 1.0

{% endcode %}

{% code title="COS example" %}

SELECT COS(1.0)
-- 0.5403023058681398

{% endcode %}

{% code title="COS example" %}

SELECT COS(-1)
-- 0.5403023058681398

{% endcode %}