RADIANS
RADIANS is an SQL mathematical function that converts a specified degree value into its equivalent in radians. It is most commonly used in trigonometric calculations.
RADIANS(X)
- x: This parameter represents the number which is to be converted into radians. The input value should be a numeric floating point.
Example
Output
Explanation
In this example, the RADIANS function in MySQL is used to convert an angle specified in degrees to radians. Specifically, the angle of 60 degrees is converted to its radian equivalent- approximately 1.0471975512.
RADIANS( float_expression )
- float_expression: This is a floating point number that represents a number of degrees. This numeric expression is an angle in degrees that will be converted to radians. The argument must be of a type that is implicitly convertible to float.
Example
Output
Explanation
The RADIANS()
function in SQL server is used to convert degrees into radians. In the example given, the number 180
degrees is converted into radians resulting in 3.14159265358979
.
RADIANS(number)
- number: This parameter is the numeric value to be converted into radians. It accepts a numeric or any non-numeric expression that can be implicitly converted to a numeric data type. Non-numeric expressions are converted to numbers before the RADIANS function executes. The angle in degrees provided in this parameter is converted to an equivalent value in radians.
Example
Output
Explanation
RADIANS function in Oracle converts the inputted degree value into radians. In the above example, the degree value of 90 is converted into its radian equivalent, 1.570796327.