This tutorial explains how to use the MySQL RADIANS function with syntax and examples.
The MySQL RADIANS function a value in degrees to radians.
The syntax for the RADIANS function in MySQL is:
RADIANS( number )
An angle in degrees to convert to radians.
The RADIANS function can be used in the following versions of MySQL:
Let's look at some MySQL RADIANS function examples and explore how to use the RADIANS function in MySQL.
For example:
mysql> SELECT RADIANS(45);
Output: 0.7853981633974483
mysql> SELECT RADIANS(180);
Output: 3.141592653589793
mysql> SELECT RADIANS(0);
Output: 0
mysql> SELECT RADIANS(-45);
Output: -0.7853981633974483