---
schema_version: "1"
id: 3892d57ee90ef5c86a33ea28482ce07971a711e5b1d51072c79da72741b6411e
title: tan(n)
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/analytics/bi_dev_guide_saql/guides/reference/bi-saql-functions-math-tan.md
canonical_url: https://developer.salesforce.com/docs/analytics/bi-dev-guide-saql/guide/bi-saql-functions-math-tan.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 07b81288bf6fe3838b22c608ae1449b43ce0041485994580957b129aac72c496
products:
  - Analytics SAQL Developer Guide
  - analytics
---

# tan(n)

Returns the tangent value of radians value _n_. _n_ can be any real numeric value in the range of -1e308 \<= _n_ \<= 1e308. If `null` is passed as an argument, `tan()` returns `null`. This function can only be used in a `foreach` statement.

## Example

```nolang
q = foreach q generate tan(radians) as tangent;
```
