Skip to main content
Trigonometric function that calculates the sine of a provided value.

Syntax

SIN(<value>)

Parameters

ParameterDescriptionSupported input types
<value>The value that determines the returned sine in radians.DOUBLE PRECISION

Return Type

DOUBLE PRECISION

Example

The following query calculates the sine of 0:
SELECT SIN(0) as result;
result double
0

Rows: 1Execution time: 5.07ms

The following query calculates the sine of pi:
SELECT ROUND(SIN(PI()), 5) as result;
result double
0

Rows: 1Execution time: 5.69ms