# COS

Computes the cosine of **x**, where **x** is given in radians.

## Syntax

```sql
COS (x)

```

## Arguments

* `x`: the argument in radians

## Return Type

Float or double. NULL if **x** is NULL.

## Example

```sql
SELECT COS(3.14159265359);

```

```output

+--------------------+
| cos(3.14159265359) |
+--------------------+
|                 -1 |
+--------------------+
1 row in set (0.05 sec)

```

***

Modified at: February 24, 2023

Source: [/db/v9.1/reference/sql-reference/numeric-functions/cos/](https://docs.singlestore.com/db/v9.1/reference/sql-reference/numeric-functions/cos/)

(An index of the documentation is available at /llms.txt)
