What is DEGREES() in SQL?

The DEGREES() function converts the radian value to degrees.

Figure 1 shows a mathematical representation of the DEGREES() function.

Figure 1: Mathematical representation of DEGREES() function

Syntax

DEGREES(value)

Parameter

The DEGREES() function takes a numberradian value as a parameter.

Return value

The DEGREES() function then converts the radian value sent as parameter to degrees.

Example

-- pi to degrees
SELECT DEGREES(PI());
-- 0 to degrees
SELECT DEGREES(0);
-- -pi to degrees
SELECT DEGREES(-PI());

Free Resources