---
title: "ACOS"
description: "The ACOS SQL function returns the angle of the provided cosine."
language: en
source_language: en
translation_state: complete
canonical: https://documentation.invantive.eu/en/docs/invantive-universalsql/grammar/sql-functions/acos
original: https://documentation.invantive.eu/en/docs/invantive-universalsql/grammar/sql-functions/acos
updated: 2026-08-09T00:00:00Z
license: https://documentation.invantive.eu/en/
---

## Syntax
```mermaid
%%{init: {
  'theme': 'base',
  'flowchart': { 'padding': '7', 'nodeSpacing': '20', 'rankSpacing': '20' },
  'themeVariables': {
    'fontSize': '11px',
    'fontFamily': 'Arial'
  }
}}%%
flowchart LR
    Start((START)) --> ACOS[ACOS]:::quoted
    ACOS --> End((END))
```

## Purpose
The `ACOS` SQL function returns the angle of the provided cosine.

See also [[COS]].

Parameters:
- Input (`decimal`): the cosine to get the angle of.

Returns: A number which represents the angle of the provided cosine as `decimal`.

## Examples
`ACOS` retrieves the angle of the cosine 1:
```sql
select acos(1)

--------
0
```
`ACOS` retrieves the angle of the cosine 0, rounded to four decimals:
```sql
select round(acos(0), 4)

--------
1.5708
```