Skip to content

SIN

SELECT SIN(PI()/4);
0.70710678118655

The SIN() function in MySQL returns the sine of an angle provided in radians. The PI() function returns the value of PI. Thus, SIN(PI()/4) calculates the sine of 45 degrees. The output 0.70710678118655 is the result of this calculation.