In this guide, we will explain how to use the MySQL DEGREES function with syntax and examples.
Description
The MySQL DEGREES function converts a radian value into degrees.
Syntax
The syntax for the DEGREES function is:
DEGREES( number )
Parameters or Arguments
number
The value in radians that is to be converted to degrees.
Note
- See also the RADIANS and PI functions.
Applies To
The DEGREES function can be used in the following versions :
- MySQL 5.7, MySQL 5.6, MySQL 5.5, MySQL 5.1, MySQL 5.0, MySQL 4.1, MySQL 4.0, MySQL 3.23
Example
Let’s look at some DEGREES function examples and explore how to use the DEGREES function.
For example:
mysql> SELECT DEGREES(1.5); Result: 85.94366926962348 mysql> SELECT DEGREES(-0.9); Result: -51.56620156177409 mysql> SELECT DEGREES(PI()*2); Result: 360
Next Topic : Click Here
Pingback: MySQL: COUNT Function | Adglob Infosystem Pvt Ltd