DEGREES
degreesβ
descriptionβ
Syntaxβ
DOUBLE degrees(DOUBLE x)
Returns the degree of x
, converted from radians to degrees.
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