degrees function

The degrees function converts the specified expression from radians to degrees.

Syntax:

double degrees(n)

Semantics:

Note:

The conversion from radians to degrees does not generally return an exact value. For example, consider the query:

SELECT degrees(atan(sqrt(3))) AS ATAN60 FROM Archery

The degrees to radians conversion results in: {"ATAN60":59.99999999999999}

Example 1 - degrees function

SELECT degrees(n) FROM Archery
Value of n Output
pi()/2 90
0 0.0