What is RADIANS() in SQL?
The RADIANS() function converts a value in degrees to the equal value in radians.
Figure 1 shows a mathematical representation of the RADIANS() function.
Syntax
RADIANS(value)
Parameter
The RADIANS() function takes a number (in degrees) as a parameter.
Return value
The RADIANS() function converts the value in degrees sent as a parameter to a value in radians.
Code
-- 180 to radiansSELECT RADIANS(180);-- 0 to radiansSELECT RADIANS(0);-- -180 to radiansSELECT RADIANS(-180);