Skip to main content
Trigonometric function that calculates the cosine of a specific value in radians.

Syntax

Parameters

Return Type

COS returns a value of type DOUBLE PRECISION.

Example

The following query calculates the cosine of 0:

Rows: 1Execution time: 5.64ms

The following query calculates the cosine of pi:

Rows: 1Execution time: 5.29ms