Mysql DEGREES
From w3cyberlearnings
Contents |
MySQL DEGREES Function
This function converts radian value to degree value.
Syntax DEGREES
X is an integer and it is radian value.
DEGREES(X);
Example 1
mysql> SELECT DEGREES(PI()); +---------------+ | DEGREES(PI()) | +---------------+ | 180 | +---------------+ 1 row in set (0.00 sec)
Example 2
mysql> SELECT DEGREES(PI()/4); +-----------------+ | DEGREES(PI()/4) | +-----------------+ | 45 | +-----------------+ 1 row in set (0.00 sec)