MySQL: DEGREES Function
This MySQL tutorial explains 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 in MySQL is:
DEGREES( number )
Parameters or Arguments
- number
- The value in radians that is to be converted to degrees.
Applies To
The DEGREES function can be used in the following versions of MySQL:
- 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 MySQL DEGREES function examples and explore how to use the DEGREES function in MySQL.
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
Advertisements