This tutorial explains how to use the MySQL DEGREES function with syntax and examples.
The MySQL DEGREES function converts a radian value into degrees.
The syntax for the DEGREES function in MySQL is:
DEGREES( number )
The value in radians that is to be converted to degrees.
The DEGREES function can be used in the following versions of MySQL:
Let's look at some MySQL DEGREES function examples and explore how to use the DEGREES function in MySQL.
For example:
mysql> SELECT DEGREES(1.5);
Output: 85.94366926962348
mysql> SELECT DEGREES(-0.9);
Output: -51.56620156177409
mysql> SELECT DEGREES(PI()*2);
Output: 360