RADIANS
RADIANS(X)
Section titled “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
Section titled “Example”SELECT RADIANS(60) as Result;Output
Section titled “Output”| Result ||--------------|| 1.0471975512 |Explanation
Section titled “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 )
Section titled “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
Section titled “Example”SELECT RADIANS(180) AS ResultOutput
Section titled “Output”Result-------3.14159265358979Explanation
Section titled “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)
Section titled “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
Section titled “Example”SELECT RADIANS(90) FROM DUAL;Output
Section titled “Output”1.570796327Explanation
Section titled “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.