Skip to main content

SIN Function

The SIN function returns the sine of a number, expressed in radians, and returns a floating-point number. It is commonly used in trigonometric calculations and geometric computations. ## Syntax

SIN(angle)

Arguments

angle: A numeric expression that specifies the angle in radians for which the sine value is to be calculated.

Returns

  • The function returns the sin of the specified angle, which is a value between -1 and 1.

  • The input angle must be in radians. To convert degrees to radians, use a conversion formula (e.g. radians = degrees * π / 180). ## Limits

  • Input values can be any numeric type, including floating-point and integers.

  • The result is accurate within the precision of the database system’s floating-point arithmetic.

  • If the input is NULL, the result will be NULL. ## Examples

> SELECT SIN(0);
0.0

> SELECT SIN(NULL);
NULL