Categories:

Numeric functions (Trigonometric)

DEGREES

Converts radians to degrees.

Syntax

DEGREES( <real_expr> )
Copy

Arguments

real_expr

An expression representing the number of radians.

Returns

This returns a value of type REAL/FLOAT (double-precision floating point).

Examples

Show the number of degrees for 1/3 of a radian, 1 radian, and 3 radians:

SELECT DEGREES(PI()/3), DEGREES(PI()), DEGREES(3 * PI()), DEGREES(1);
+-----------------+---------------+-------------------+--------------+
| DEGREES(PI()/3) | DEGREES(PI()) | DEGREES(3 * PI()) |   DEGREES(1) |
|-----------------+---------------+-------------------+--------------|
|              60 |           180 |               540 | 57.295779513 |
+-----------------+---------------+-------------------+--------------+
Copy
Language: English