degrees() 是 MySQL 的数学函数。此函数用于将给定的弧度数转换为度数。
语法
select degrees(number);
参数
number:转换为度数的数。
示例 1
Select degrees(34);
输出:
mysql> Select degrees(34);
+-------------------+
| degrees(34) |
+-------------------+
| 1948.056503444799 |
+-------------------+
1 row in set (0.01 sec)
+-------------------+
| degrees(34) |
+-------------------+
| 1948.056503444799 |
+-------------------+
1 row in set (0.01 sec)
示例 2
Select degrees(4.5);
输出:
mysql> Select degrees(4.5);
+-------------------+
| degrees(4.5) |
+-------------------+
| 257.8310078088705 |
+-------------------+
1 row in set (0.00 sec)
+-------------------+
| degrees(4.5) |
+-------------------+
| 257.8310078088705 |
+-------------------+
1 row in set (0.00 sec)
示例 3
Select degrees(-5);
输出:
mysql> Select degrees(-5);
+--------------------+
| degrees(-5) |
+--------------------+
| -286.4788975654116 |
+--------------------+
1 row in set (0.00 sec)
+--------------------+
| degrees(-5) |
+--------------------+
| -286.4788975654116 |
+--------------------+
1 row in set (0.00 sec)