SQLite sin() Function
The SQLite sin() function returns the sine of the specified radian.
Syntax
Here is the syntax of the SQLite sin() function:
sin(number)
Parameters
number-
Required. A number used to calculate the sine, in radians.
Return value
The SQLite sin() function returns the sine of the specified radian.
If the parameter number is NULL, the sin() function will return NULL.
Examples
This example shows the basic usage of the SQLite sin() function:
SELECT
sin(2.5),
sin(0.2),
sin(-0.5),
sin(-0.2),
sin(0),
sin(pi());
sin(2.5) = 0.598472144103957
sin(0.2) = 0.198669330795061
sin(-0.5) = -0.479425538604203
sin(-0.2) = -0.198669330795061
sin(0) = 0.0
sin(pi()) = 1.22464679914735e-16