Skip to main content

Categories: Math

SIN

Computes the sine of a value.

Syntax​

SIN(numeric_expression int32) → double​

  • numeric_expression: The number in radians.

Examples

SIN example
SELECT SIN(360)
-- 0.9589157234143065
Calculate the sine of 0
SELECT SIN(0)
-- 0.0

SIN(numeric_expression float) → double​

  • numeric_expression: The number in radians.

Examples

SIN example
SELECT SIN(510.89)
-- 0.9282211721815067

SIN(numeric_expression int64) → double​

  • numeric_expression: The number in radians.

Examples

SIN example
SELECT SIN(360)
-- 0.9589157234143065

SIN(numeric_expression double) → double​

  • numeric_expression: The number in radians.

Examples

SIN example
SELECT SIN(510.89)
-- 0.9282211721815067
Calculate the sine of pi divided by 2
SELECT SIN(PI() / 2)
-- 1.0
Return NULL for a NULL input
SELECT SIN(NULL)
-- null