MySQL RADIANS() function
RADIANS() function
MySQL RADIANS() converts the value of a number from degrees to radians. (pi radians equals to 180 degrees).
Syntax:
RADIANS(M);
Argument:
Name | Description |
---|---|
M | A number in degrees which is to be converted to radians. |
Syntax Diagram:
MySQL Version: 5.6
Pictorial presentation of MySQL RADIANS() function
Example of MySQL RADIANS() function
Code:
SELECT RADIANS(270);
Explanation:
The above MySQL statement converts 270 (in degrees) to radians.
Sample Output:
mysql> SELECT RADIANS(270); +------------------+ | RADIANS(270) | +------------------+ | 4.71238898038469 | +------------------+ 1 row in set (0.00 sec)
All Mathematical Functions
- New Content published on w3resource:
- HTML-CSS Practical: Exercises, Practice, Solution
- Java Regular Expression: Exercises, Practice, Solution
- Scala Programming Exercises, Practice, Solution
- Python Itertools exercises
- Python Numpy exercises
- Python GeoPy Package exercises
- Python Pandas exercises
- Python nltk exercises
- Python BeautifulSoup exercises
- Form Template
- Composer - PHP Package Manager
- PHPUnit - PHP Testing
- Laravel - PHP Framework
- Angular - JavaScript Framework
- Vue - JavaScript Framework
- Jest - JavaScript Testing Framework