---
schema_version: "1"
id: 1394f43ff73ceeb874fcd238f4551716105994194dd87a5f38487ae690f6cf92
title: acos(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-acos.md
canonical_url: https://developer.salesforce.com/docs/analytics/bi-dev-guide-saql/guide/bi-saql-functions-math-acos.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 47d92e1c08189e68b324ee7105e0e572e8bef283aa85ee5782ca66705156e0a0
products:
  - Analytics SAQL Developer Guide
  - analytics
---

# acos(n)

Returns the arccosine value of radians value _n_. _n_ can be any real numeric value in the range of -1 \<= _n_ \<= 1. If `null` is passed as an argument, `acos()` returns `null`. This function can only be used in a `foreach` statement.

## Example

```nolang
q = foreach q generate acos(radians) as arccosine;
```
