Function Reference > Functions > SIN
  

SIN

Returns the sine of a numeric value (expressed in radians).

Syntax

SIN( numeric_value )
Argument
Required/
Optional
Description
numeric_value
Required
Numeric datatype. Numeric data expressed in radians (degrees multiplied by pi divided by 180). Passes the values for which you want to calculate the sine. You can enter any valid expression. You can also use operators to convert a numeric value to radians or perform arithmetic within the SIN calculation.

Return Value

Double value.
NULL if a value passed to the function is NULL.

Example

The following expression converts the values in the Degrees column to radians and then calculates the sine for each radian:
SIN( DEGREES * 3.14159265359 / 180 )
DEGREES  
RETURN VALUE
0
0
90
1
70
0.939692620785936
30
0.50000000000003
5
0.0871557427476639
18
0.309016994374967
89
0.999847695156393
NULL
NULL
You can perform arithmetic on the values passed to SIN before the function calculates the sine. For example:
SIN( ARCS * 3.14159265359 / 180 )