Mysql RADIANS
From w3cyberlearnings
Contents |
MySQL RADIANS Function
This function converts degrees to radians.
Syntax RADIANS
X is a number represents of degrees.
RADIANS(X);
Example 1
mysql> SELECT RADIANS(180); +------------------+ | RADIANS(180) | +------------------+ | 3.14159265358979 | +------------------+ 1 row in set (0.00 sec)
Example 2
mysql> SELECT RADIANS(40); +-------------------+ | RADIANS(40) | +-------------------+ | 0.698131700797732 | +-------------------+ 1 row in set (0.00 sec)