DEGREES()
This page is part of MariaDB's Documentation.
The parent of this page is: Functions for MariaDB Xpand
Topics on this page:
Overview
Converts the given argument from radians to degrees.
USAGE
DEGREES(radians)
Argument Name | Description |
---|---|
| An angle expressed in radians |
DETAILS
DEGREES()
is a mathematical function that converts radians into degrees.
A NULL
is returned if the argument is NULL
or is a complex number.
EXAMPLES
SELECT DEGREES(PI() / 5);
+-------------------+
| DEGREES(PI() / 5) |
+-------------------+
| 36 |
+-------------------+
SELECT DEGREES(1);
+-----------------+
| DEGREES(1) |
+-----------------+
| 57.295779513082 |
+-----------------+