Skip to main content

DEGREES

Returns the argument x, converted from radians to degrees.

Syntax

DEGREES(x)

Arguments

ArgumentsDescription
xThe angle, in radians.

Return Type

A Float64 data type value.

Examples

SELECT DEGREES(PI());
+---------------+
| DEGREES(PI()) |
+---------------+
| 180 |
+---------------+

SELECT DEGREES(PI() / 2);
+---------------------+
| DEGREES((PI() / 2)) |
+---------------------+
| 90 |
+---------------------+