Menu
Amazon Redshift
Database Developer Guide (API Version 2012-12-01)

SIN Function

SIN is a trigonometric function that returns the sine of a number. The return value is in radians and is between PI/2 and -PI/2.

Syntax

Copy
SIN(number)

Argument

number

The input parameter is a double precision number.

Return Type

The SIN function returns a double precision number.

Examples

The following example returns the sine of PI:

Copy
select sin(-pi()); sin ----------------------- -1.22464679914735e-16 (1 row)