跳到主要内容
跳到主要内容

degrees

degrees

description

Syntax

DOUBLE degrees(DOUBLE x) 返回x的度, 从弧度转换为度.

example

mysql> select degrees(0);
+--------------+
| degrees(0.0) |
+--------------+
| 0 |
+--------------+
mysql> select degrees(2);
+--------------------+
| degrees(2.0) |
+--------------------+
| 114.59155902616465 |
+--------------------+
mysql> select degrees(Pi());
+---------------+
| degrees(pi()) |
+---------------+
| 180 |
+---------------+

keywords

DEGREES