w3resource

PostgreSQL DEGREES() function

DEGREES() function

The PostgreSQL degrees() function converts angle values from radians to degrees.

Uses of DEGREES() Function
  • Angle Conversion: To convert radian measurements to degrees for easier interpretation.

  • Mathematical Calculations: Useful in trigonometric functions and calculations that require angle values in degrees.

  • Engineering and Physics: Applied in fields where angular measurements are commonly used.

  • Data Visualization: Helps in visualizing angles in degrees on charts and graphs.

Syntax:

degrees()

PostgreSQL Version: 9.3

Pictorial presentation of PostgreSQL DEGREES() function

pictorial presentation of PostgreSQL DEGREES() function

Example: PostgreSQL DEGREES() function

Code:

SELECT DEGREES(.45) AS "Degrees";+

Sample Output:

     Degrees
-----------------
 25.783100780887
(1 row)

Previous: COT function
Next: DIV function



Become a Patron!

Follow us on Facebook and Twitter for latest update.

It will be nice if you may share this link in any developer community or anywhere else, from where other developers may find this content. Thanks.

https://w3resource.com/PostgreSQL/degrees-function.php