Skip to main content

RADIANS

Returns the argument X, converted from degrees to radians.

Syntax​

RADIANS(x)

Arguments​

ArgumentsDescription
xThe angle, in degrees.

Return Type​

A Float64 data type value.

Examples​

mysql> SELECT RADIANS(90);
+--------------------+
| RADIANS(90) |
+--------------------+
| 1.5707963267948966 |
+--------------------+
1 row in set (0.00 sec)

mysql> SELECT RADIANS(180);
+-------------------+
| RADIANS(180) |
+-------------------+
| 3.141592653589793 |
+-------------------+
1 row in set (0.00 sec)