Cloud

degrees

The degrees() function converts a value expressed in radians to degrees. See also radians() to convert in the opposite direction.

Syntax

DEGREES(x)

Arguments

  • x: A value, in radians, of type double precision.

Return type

double precision

Examples

Convert pi radians to degrees

SELECT DEGREES(PI());
 degrees
---------
     180
(1 row)

Convert an arbitrary value

SELECT DEGREES(1);
      degrees
-------------------
 57.29577951308232
(1 row)