> ## Documentation Index
> Fetch the complete documentation index at: https://docs.firebolt.io/llms.txt
> Use this file to discover all available pages before exploring further.

# COS

> Reference material for COS function

Trigonometric function that calculates the cosine of a specific value in radians.

## Syntax

```sql theme={"theme":{"light":"css-variables","dark":"css-variables"}}
COS(<value>)
```

## Parameters

| Parameter | Description | Supported input types |
| :- | :- | :- |
| `<value>` | The value that determines the returned cosine in radians. | `DOUBLE PRECISION` |

## Return Type

`COS` returns a value of type `DOUBLE PRECISION`.

## Example

The following query calculates the cosine of 0:

```
SELECT COS(0) as result;
```

| result double |
| :- |
| 1 |

Rows: 1Execution time: 5.64ms

The following query calculates the cosine of pi:

```
SELECT ROUND(COS(PI()), 5) as result;
```

| result double |
| :- |
| -1 |

Rows: 1Execution time: 5.29ms


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.