radians()

A function for converting degrees to radians

radians() is a system function for converting degrees to radians.

radians() was added in PostgreSQL 7.0.

Usage

radians ( double precision ) → double precision

Use degrees() to perform the opposite conversion, i.e. from radians to degrees.

Change history

Examples

Basic usage example for radians():

postgres=# SELECT radians(120);
      radians       
--------------------
 2.0943951023931953
(1 row)

Categories

System function

See also

degrees()