- Catégories :
Fonctions numériques (trigonométrique)
COS¶
Calcule le cosinus de son argument ; l’argument doit être exprimé en radians.
Syntaxe¶
COS( <input_expr> )
Arguments¶
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.
Exemples¶
SELECT COS(0), COS(PI()/3), COS(RADIANS(90)); --------+-------------+------------------+ COS(0) | COS(PI()/3) | COS(RADIANS(90)) | --------+-------------+------------------+ 1 | 0.5 | 6.123233996e-17 | --------+-------------+------------------+