Menu
Amazon Redshift
Database Developer Guide (API Version 2012-12-01)

DEGREES Function

Converts an angle in radians to its equivalent in degrees.

Syntax

Copy
DEGREES(number)

Argument

number

The input parameter is a double precision number.

Return Type

The DEGREES function returns a double precision number.

Examples

The following example returns the degree equivalent of .5 radians:

Copy
select degrees(.5); degrees ------------------ 28.6478897565412 (1 row)

The following example converts PI radians to degrees:

Copy
select degrees(pi()); degrees --------- 180 (1 row)