ID EN
Mathematical Functions

COS(X)

MySQL 8.4

Returns the cosine of X, where X is given in radians. Returns NULL if X is NULL.

Syntax

MYSQL
SELECT COS(PI());
-1

Examples

Example
MYSQL
SELECT COS(PI());
-1