> ## Documentation Index
> Fetch the complete documentation index at: https://docs.firebolt.io/llms.txt
> Use this file to discover all available pages before exploring further.

> Reference material for ACOS function

# ACOS

export const QueryWindow = ({content}) => {
  const {sql, result} = content;
  const [inited, setInited] = useState(false);
  const buttonRef = useRef(null);
  useEffect(() => {
    if (!inited && buttonRef.current) {
      runQuery(buttonRef.current, true);
      setInited(true);
    }
  }, []);
  return <div className="query-window">
      <div className="query-toolbar">
        <button className="run-button" onClick={ev => runQuery(ev.target)} ref={buttonRef}>Run Query</button>
        <span className="window-title">Interactive SQL Playground 🔥</span>
      </div>
      <div className="query-content">
        <pre><code className="firebolt-sql language-sql" contentEditable="true" spellCheck="false" data-original-query={sql}>{sql}</code></pre>
        <script type="application/json" className="fallback-result" style={{
    display: "none"
  }}>{JSON.stringify(result)}</script>
        <div className="server-unavailable-banner query-window-hidden">
          The Firebolt playground server is currently unavailable. Using precomputed query results.
        </div>
        <div className="query-results"></div>
      </div>
    </div>;
};

Calculates the arccosine of a value in radians.

## Syntax

```sql theme={"theme":{"light":"github-light","dark":"github-dark"}}
ACOS(<value>)
```

## Parameters

| Parameter | Description                                           | Supported input types |
| :-------- | :---------------------------------------------------- | :-------------------- |
| `<value>` | The number that the arccosine function is applied to. | `DOUBLE PRECISION`    |

## Return Type

`ACOS` returns a value of type `DOUBLE PRECISION`.

## Example

The following query calculates the arccosine of 1:

<QueryWindow
  content={{
"sql": "SELECT ACOS(1) as result;",
"result": {
"data": [
  [
    0
  ]
],
"meta": [
  {
    "name": "result",
    "type": "double"
  }
],
"query": {
  "query_id": "63c4d389-3856-4be5-a25d-25135873c586",
  "query_label": null,
  "request_id": "285d0afb-2656-46c9-ae85-1b081206eb0c"
},
"rows": 1,
"statistics": {
  "bytes_read": 1,
  "elapsed": 0.007019,
  "rows_read": 1,
  "scanned_bytes_cache": 0,
  "scanned_bytes_storage": 0,
  "time_before_execution": 0.000267471,
  "time_to_execute": 9.9633e-05
}
}
}}
/>
