类别:

数值函数 (三角函数)

RADIANS

将度转换为弧度。

语法

RADIANS( <input_expr> )
Copy

实参

input_expr

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

返回

This function returns a value of type FLOAT.

示例

Show the results of calling the RADIANS function:

SELECT RADIANS(0), RADIANS(60), RADIANS(180), RADIANS(360), RADIANS(720);
Copy
+------------+-------------+--------------+--------------+--------------+
| RADIANS(0) | RADIANS(60) | RADIANS(180) | RADIANS(360) | RADIANS(720) |
|------------+-------------+--------------+--------------+--------------|
|          0 | 1.047197551 |  3.141592654 |  6.283185307 | 12.566370614 |
+------------+-------------+--------------+--------------+--------------+
语言: 中文