DEGREES

Converts an expression from RADIANS to fractional degrees, or from degrees, minutes, and seconds to fractional degrees. The return value has the type DOUBLE PRECISION.

Behavior Type

Immutable

Syntax 1

DEGREES (radians)

Syntax 2

DEGREES (degrees, minutes, seconds)

Parameters

radians

A unit of angular measure, 2π radians is equal to a full rotation.

degrees

A unit of angular measure, equal to 1/360 of a full rotation.

minutes

A unit of angular measurement, representing 1/60 of a degree.

seconds

A unit of angular measurement, representing 1/60 of a minute.

Examples

SELECT DEGREES(0.5);
     DEGREES      
------------------
 28.6478897565412
(1 row)
SELECT DEGREES(1,2,3);
     DEGREES      
------------------
 1.03416666666667
(1 row)