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

RADIANS Function

Converts an angle in degrees to its equivalent in radians.

Syntax

Copy
RADIANS(number)

Argument

string

The input parameter is a double precision number.

Return Type

The RADIANS function returns a double precision number.

Examples

The following example returns the radian equivalent of 180 degrees:

Copy
select radians(180); radians ------------------ 3.14159265358979 (1 row)