Jump to: navigation, search

PostgreSQL RADIANS

From w3cyberlearnings

Contents

Postgresql RADIANS

This function converts degrees to radians.

Syntax RADIANS

RADIANS(X);

Example 1


postgres=# SELECT RADIANS(180);
     radians      
------------------
 3.14159265358979
(1 row)

Example 2

postgres=# SELECT RADIANS(40);
      radians      
-------------------
 0.698131700797732
(1 row)

Related Links



Navigation
Web
SQL
MISC
References