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.
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'
PI/4 | PI/2 | PI |
---|---|---|
45 | 90 | 180 |
Note: PI is a function that returns the value of π (3.14).
Syntax of the DEGREES function.
DEGREES(value)
value
-- a number representing the angle in radians.