PostgreSQL/Math Functions/radians

Материал из SQL эксперт
Перейти к: навигация, поиск

radians(d): Returns radian equivalent to d degrees

postgres=# -- radians(d): Returns radian equivalent to d degrees
postgres=# SELECT radians(180) AS half_circle,
postgres-#        radians(360) AS full_circle;
   half_circle    |   full_circle
------------------+------------------
 3.14159265358979 | 6.28318530717959
(1 row)
postgres=#