---
schema_version: "1"
id: 44a8279dc1c411c022875be3370b8f9c0a7d0203af773f9af823cc0e6a1df2a6
title: sin(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-sin.md
canonical_url: https://developer.salesforce.com/docs/analytics/bi-dev-guide-saql/guide/bi-saql-functions-math-sin.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: aa8f1711441db0f4f1a172e40e904a9a5786b9e49233a543d28bfc6c3b28fd82
products:
  - Analytics SAQL Developer Guide
  - analytics
---

# sin(n)

Returns the sine 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, `sin()` returns `null`. This function can only be used in a `foreach` statement.

## Example

```nolang
q = foreach q generate sin(radians) as sine;
```
