Kategorien:

Numerische Funktionen (Trigonometrisch)

DEGREES

Konvertiert Bogenmaß in Grad.

Syntax

DEGREES( <input_expr> )
Copy

Argumente

input_expr

The value or expression to operate on. The data type must be FLOAT or DECFLOAT.

Rückgabewerte

If the input expression is of type DECFLOAT, the returned type is DECFLOAT. Otherwise, the returned type is FLOAT.

Beispiele

Zeigt die Gradzahl für 1/3 eines Radianten, 1 Radiant und 3 Radianten an:

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