TAN() function
X is in Radian TAN() with PI()mathematical constant PI() (π) value is 3.141593
We used ROUND() to show only two decimal places.
TAN() with RADIANSRadians function convert degree value to radian. SELECT TAN(RADIANS(0)); // Output is 0 SELECT TAN(RADIANS(45)); // Output is 1 SELECT TAN(RADIANS(90)); // Output is infinity or 1.63312393531954e+016 SELECT ROUND(TAN(RADIANS(180)),2); // Output is -0.00 ![]()
This article is written by plus2net.com team.
https://www.plus2net.com
![]() ▼ More on Math functions in SQL |