PostgreSQL DEGREES
From w3cyberlearnings
Contents |
Postgresql degrees
This function converts radian value to degree value.
Syntax degrees
X is a radian value.
degrees(X);
Example 1
postgres=# SELECT DEGREES(PI()); degrees --------- 180 (1 row)
Example 2
postgres=# SELECT DEGREES(PI()/4); degrees --------- 45 (1 row)