Please note, this is a STATIC archive of website www.w3resource.com from 19 Jul 2022, cach3.com does not collect or store any user information, there is no "phishing" involved.
w3resource

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 RADIANS() Function - Syntax Diagram

MySQL Version: 5.6


Pictorial presentation of MySQL RADIANS() function

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

MySQL Mathematical Functions, slide presentation

Previous: POWER()
Next: RAND()