X is in Radian
COT() with PI()mathematical constant PI() (π) value is 3.141593
We used ROUND() to show only two decimal places.
COT() with RADIANS
SELECT COT(RADIANS(0)); // Ouput is NULL SELECT COT(RADIANS(45)); // Output is 1 SELECT ROUND(COT(RADIANS(90)),2); // Output is0.00 SELECT ROUND(COT(RADIANS(180)),2); // Output is Infinity
This article is written by plus2net.com team.
▼ More on Math functions in SQL