11.2.5 角度与弧度互换函数
1.RADIANS(X)函数
RADIANS(X)函数用于将角度转化为弧度,其中,参数X为角度值。使用示例如下:
mysql> SELECT RADIANS(90),RADIANS(180),RADIANS(270);
+--------------------+-------------------+------------------+
| RADIANS(90) | RADIANS(180) | RADIANS(270) |
+--------------------+-------------------+------------------+
| 1.5707963267948966 | 3.141592653589793 | 4.71238898038469 |
+--------------------+-------------------+------------------+
1 row in set (0.00 sec)
可以看到,90°角对应的弧度值为1.5707963267948966,180°角对应的弧度值为3.141592653589793,也就是π的