VeloDB Cloud
SQL Manual
SQL Functions
Numeric Functions
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