SELECT PI()
Output is 3.141593SELECT DEGREES(PI()); // Output is 180
SELECT DEGREES(PI()/2); // Output is 90
SELECT DEGREES(PI()/3); // Output is 59.99999
SELECT SIN(PI()); // Output is 1.2246467991473532e-16We can use use ROUND Function to rounds to output
SELECT ROUND(SIN(PI())); // Output is 0 SELECT ROUND(SIN(PI()/2)); // Output is 1We will allow some decimal places to be shown as the value of SIN varies between 0 and 1.
SELECT ROUND( SIN( PI( ) /3 ), 3 ) //Output is 0.866 SELECT ROUND( SIN( PI( ) /4 ) , 4 ) // Output is 0.7071We can try COS values
SELECT ROUND( COS( PI( ) /3 ), 3 ) //Output is 0.500 SELECT ROUND( COS( PI( ) /2 ), 3 ) // Output is 0.000
Author
🎥 Join me live on YouTubePassionate about coding and teaching, I publish practical tutorials on PHP, Python, JavaScript, SQL, and web development. My goal is to make learning simple, engaging, and project‑oriented with real examples and source code.