RADIANS Function in SQL
The RADIANS numeric function of Structured Query Language returns the radians value of the specified degree.
Syntax of RADIANS Function
Syntax1: This syntax uses the RADIANS function with the column name of the SQL table:
In this first syntax, we have to specify the name of that column on which we want to execute the RADIANS function for converting the degree value into radians.
Syntax2: This syntax uses the RADIANS function with the number:
Examples of RADIANS Function
Example 1: This example returns the Radians value of the specified number (degree):
Output:
Radiansvalue_of_360 |
---|
6.283 |
Example 2: This example returns the Radians value of the specified number:
Output:
Radiansvalue_of_180 |
---|
3.14159 |
Example 3: This example returns the Radians value of 90 degree:
Output:
Radiansvalue_of_90 |
---|
1.57 |
Example 4: This example returns the Radians value of -45 degree:
Output:
Radiansvalue_of_-45 |
---|
-0.785 |
Example 5: This example returns the Radians value of the given expression: