- Catégories :
Fonctions numériques (trigonométrique)
DEGREES¶
Convertit les radians en degrés.
Syntaxe¶
DEGREES( <input_expr> )
Arguments¶
input_exprThe value or expression to operate on. The data type must be FLOAT or DECFLOAT.
Renvoie¶
If the input expression is of type DECFLOAT, the returned type is DECFLOAT. Otherwise, the returned type is FLOAT.
Exemples¶
Indique le nombre de degrés pour 1/3 de radian, 1 radian et 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 | +-----------------+---------------+-------------------+--------------+