COS() : function to get COS value of any raidan input

SELECT COS(PI()); // Output is -1
SELECT ROUND(COS(PI()/2),2); // Output is 0.00
SELECT ROUND(COS(PI()/3),2); // Output is 0.5 
We used ROUND() to show only two decimal places.

Syntax
SELECT COS( X )
X is in Radian

COS() with PI()

mathematical constant PI() (π) value is 3.141593

COS() with RADIANS

Radians function convert degree value to radian.

SELECT COS(RADIANS(0)); // Output is 1
SELECT ROUND(COS(RADIANS(90)),2); // Output is 0.00
SELECT COS(RADIANS(180)); // Output is -1
SQL Math References TAN() to get tangent sin()
Subhendu Mohapatra — author at plus2net
Subhendu Mohapatra

Author

🎥 Join me live on YouTube

Passionate 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.



Subscribe to our YouTube Channel here



plus2net.com




SQL Video Tutorials










We use cookies to improve your browsing experience. . Learn more
HTML MySQL PHP JavaScript ASP Photoshop Articles Contact us
©2000-2025   plus2net.com   All rights reserved worldwide Privacy Policy Disclaimer