MySQL SIN() Function

In MySQL, the SIN() function returns the sine of the specified number.

SIN() Syntax

Here is the syntax of MySQL SIN() function:

SIN(number)

Parameters

number
Required. An angle, in radians.

Return value

In MySQL, the SIN() function returns the sine of the specified number.

If number is NULL, the function will return NULL.

SIN() Examples

SELECT
    SIN(2.5),
    SIN(0.2),
    SIN(-0.5),
    SIN(-0.2),
    SIN(0),
    SIN(PI()),
    SIN(NULL)\G
*************************** 1\. row ***************************
 SIN(2.5): 0.5984721441039565
 SIN(0.2): 0.19866933079506122
SIN(-0.5): -0.479425538604203
SIN(-0.2): -0.19866933079506122
   SIN(0): 0
SIN(PI()): 1.2246467991473532e-16
SIN(NULL): NULL