> ## 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.

<AgentInstructions>

## Submitting Feedback

If you encounter incorrect, outdated, or confusing documentation on this page, submit feedback:

POST https://docs.firebolt.io/feedback

```json
{
  "path": "/reference-sql/functions-reference/numeric/pow",
  "feedback": "Description of the issue"
}
```

Only submit feedback when you have something specific and actionable to report.

</AgentInstructions>

> Reference material for POW, POWER functions

# POW

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>;
};

Returns a number `<value>` raised to the specified power `<value>`.

**Alias:** `POWER`

## Syntax

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

## Parameters

| Parameter    | Description                     | Supported input types |
| :----------- | :------------------------------ | :-------------------- |
| `<value>`    | The base value of the exponent  | `DOUBLE PRECISION`    |
| `<exponent>` | The power value of the exponent | `DOUBLE PRECISION`    |

## Return Type

`DOUBLE PRECISION`

## Example

The following example calculates 2 to the power of 5:

<QueryWindow
  content={{
"sql": "select pow(2, 5) as result;",
"result": {
"data": [
  [
    32
  ]
],
"meta": [
  {
    "name": "result",
    "type": "double"
  }
],
"query": {
  "query_id": "8cffb83d-0c70-48ae-a529-7848f627a559",
  "query_label": null,
  "request_id": "960e5549-6e04-4110-928f-9bb3176e98a6"
},
"rows": 1,
"statistics": {
  "bytes_read": 1,
  "elapsed": 0.009065,
  "rows_read": 1,
  "scanned_bytes_cache": 0,
  "scanned_bytes_storage": 0,
  "time_before_execution": 0.00028292,
  "time_to_execute": 8.6648e-05
}
}
}}
/>
