---
schema_version: "1"
id: 9ad71c5f6fb0d7e6b226dbad34ae2456d17d5f34fab244a77eba678828135d93
title: cos({n})
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/analytics/bi_dev_guide_sql/guides/bi-sql-math-cos.md
canonical_url: https://developer.salesforce.com/docs/analytics/bi-dev-guide-sql/guide/bi-sql-math-cos.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 756d75bb92022f115c8d77314762487d2ea48be0b83cf468536d5bbd11a0706f
products:
  - SQL for Analytics Developer Guide
  - analytics
---

# cos({n})

Returns the cosine value of radians value `{n}`. `{n}` can be any real number in the range of -1e308 \<= `{n}` \<= 1e308. If `null` is passed as an argument, `cos()` returns `null`.

`cos({n})` takes the following syntax.

```nolang
SELECT COS(N) as ALIAS
FROM DATASET;
```

## Example

This example takes the cosine of 90 degrees.

```nolang
SELECT COS(RADIANS(90)) as cosValue
FROM "Opportunity"
LIMIT 1;
```

| cosValue    |
| ----------- |
| 6.12323e-17 |
