SIN

Trigonometric function that calculates the sine of a provided value.

Syntax

SIN(<value>)

Parameters

Parameter Description Supported 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:

Interactive SQL Playground 🔥
SELECT SIN(0) as result;

The following query calculates the sine of pi:

Interactive SQL Playground 🔥
SELECT ROUND(SIN(PI()), 5) as result;