SQL DEGREES Function

The DEGREES function converts angles from radians to degrees.

The specified input value must be a number.

To convert degrees back to radians use the RADIANS function.

Example

#

This example converts the radian input values to degrees.

SELECT DEGREES((PI()/4)) AS 'PI/4',
       DEGREES((PI()/2)) AS 'PI/2',
       DEGREES((PI())) AS 'PI'
Result:  1 record
PI/4 PI/2 PI
45 90 180

Note: PI is a function that returns the value of π (3.14).


Syntax

Syntax of the DEGREES function.

DEGREES(value)

value -- a number representing the angle in radians.


You may also like



Guides


vsn 3.1