카테고리:

숫자 함수 (삼각)

COS

인자의 코사인을 계산하며, 인자는 라디안으로 표현해야 합니다.

구문

COS( <input_expr> )
Copy

인자

input_expr

The 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 COS(0), COS(PI()/3), COS(RADIANS(90));

--------+-------------+------------------+
 COS(0) | COS(PI()/3) | COS(RADIANS(90)) |
--------+-------------+------------------+
 1      | 0.5         | 6.123233996e-17  |
--------+-------------+------------------+
Copy