- 类别:
数值函数 (三角函数)
TAN¶
计算其实参的正切值;实参应以弧度表示。
语法¶
TAN( <input_expr> )
实参¶
input_exprThe value or expression to operate on. The value must be in radians, not degrees. The data type must be FLOAT or DECFLOAT.
Returns¶
If the input expression is of type DECFLOAT, the returned type is DECFLOAT. Otherwise, the returned type is FLOAT.
示例¶
SELECT TAN(0), TAN(PI()/3), TAN(RADIANS(90)); --------+-------------+----------------------+ TAN(0) | TAN(PI()/3) | TAN(RADIANS(90)) | --------+-------------+----------------------+ 0 | 1.732050808 | 1.63312393531954e+16 | --------+-------------+----------------------+