Cloud

radians

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

Syntax

RADIANS(x)

Arguments

  • x: A value, in degrees, of type real or double precision.

Return type

Same as the input type (real or double precision).

Examples

Convert 180 degrees to radians

SELECT RADIANS(180);
       radians
-------------------
 3.141592653589793
(1 row)

Convert 90 degrees to radians

SELECT RADIANS(90);
       radians
-------------------
 1.5707963267948966
(1 row)