SELECT ROUND(SIN(PI()),2); // Output is 0.00
SELECT SIN(PI()/2); // Output is 1
SELECT ROUND(SIN(PI()/3),2); // Output is 0.87
We used ROUND() to show only two decimal places. SELECT SIN( X )
X is in Radian Radians function convert degree value to radian.
SELECT SIN(RADIANS(0)); // Output is 0 SELECT SIN(RADIANS(90)); // Output is 1 SELECT ROUND(SIN(RADIANS(180)),2); // Output is 0.00SQL Math ReferencesCOS() TAN() to get tangent