w3resource

PostgreSQL RADIANS() function

RADIANS() function

The PostgreSQL radians() function is used to return the value in radian from degrees, provided in the argument.

Uses of RADIANS() Function
  • Trigonometric Calculations: To convert degree values to radians for use in trigonometric functions.

  • Mathematical Operations: Useful in mathematical computations involving angles.

  • Scientific Research: Employed in scientific research requiring angle measurements in radians.

  • Engineering Applications: Important for engineering calculations involving rotational motion and angular measurements.

  • Data Analysis: Utilized in data analysis tasks where angle conversions are necessary for modeling and analysis.

Syntax:

radians()

PostgreSQL Version: 9.3

Pictorial presentation of PostgreSQL RADIANS() function

pictorial presentation of PostgreSQL RADIANS() function

Example: PostgreSQL RADIANS() function:

Code:

SELECT RADIANS(15.0) AS "Degrees to Radians";

Sample Output:

 Degrees to Radians
--------------------
  0.261799387799149
(1 row)

Previous: POWER function
Next: RANDOM 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/radians-function.php