Skip to content

DEGREES

  • angle: This parameter represents a numeric value that specifies the radians. It is the radian value that will be converted into degrees by the DEGREES() function.
SELECT DEGREES(PI());
180

The DEGREES() function in MySQL is used to convert the specified radian value into degrees. In this example, PI(), a function that returns the value of PI, is passed as a parameter to the DEGREES() function. Since the PI radian equals 180 degrees, the function returns 180.