PostgreSQL/Math Functions/degrees
Версия от 13:45, 26 мая 2010; (обсуждение)
degrees(dp) radians to degrees
postgres=# -- degrees(dp) radians to degrees
postgres=# select degrees(0.5);
degrees
------------------
28.6478897565412
(1 row)
postgres=#
degrees(r): Returns degrees from radians r
postgres=# -- degrees(r): Returns degrees from radians r
postgres=# SELECT degrees(acos(-1)) AS half_circle,
postgres-# degrees(pi() * 2) AS full_circle;
half_circle | full_circle
-------------+-------------
180 | 360
(1 row)
postgres=#