radians() 是MySQL 的一个数学函数。此函数用于将给定度数转换为弧度。
语法
select radians(number);
参数:
number: 是要转换成弧度的数
示例 1
select radians(23);
输出:
mysql> select radians(23);
+--------------------+
| radians(23) |
+--------------------+
| 0.4014257279586958 |
+--------------------+
1 row in set (0.00 sec)
+--------------------+
| radians(23) |
+--------------------+
| 0.4014257279586958 |
+--------------------+
1 row in set (0.00 sec)
示例 2
select radians(45.1);
输出:
mysql> select radians(45.1);
+--------------------+
| radians(45.1) |
+--------------------+
| 0.7871434926494426 |
+--------------------+
1 row in set (0.00 sec)
+--------------------+
| radians(45.1) |
+--------------------+
| 0.7871434926494426 |
+--------------------+
1 row in set (0.00 sec)