カテゴリ:

数値関数 (三角関数)

DEGREES

ラジアンを度に変換します。

構文

DEGREES( <input_expr> )
Copy

引数

input_expr

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

戻り値

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

ラジアンの1/3、1ラジアン、3ラジアンの度数を表示します。

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