> ## 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/is_infinite",
  "feedback": "Description of the issue"
}
```

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

</AgentInstructions>

> Reference material for the IS_INFINITE function

# IS_INFINITE

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 `TRUE` if the argument is infinite, and `FALSE` otherwise. Only `REAL` and `DOUBLE PRECISION` types can represent infinity in Firebolt, meaning that `IS_INFINITE` will always return `FALSE` for `NUMERIC` inputs.

## Syntax

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

## Parameters

| Parameter | Description                                                              | Supported input types                 |
| :-------- | :----------------------------------------------------------------------- | :------------------------------------ |
| `<value>` | The input that will be checked to determine if it is an infinite number. | `NUMERIC`, `DOUBLE PRECISION`, `REAL` |

## Return Type

`IS_INFINITE` returns a value of type `BOOLEAN`.

## Examples

The following code example checks whether the value inf, after being cast to a `DOUBLE PRECISION` data type, is an infinite number:

<QueryWindow
  content={{
"sql": "SELECT IS_INFINITE('inf'::DOUBLE PRECISION);",
"result": {
"data": [
  [
    true
  ]
],
"meta": [
  {
    "name": "?column?",
    "type": "boolean"
  }
],
"query": {
  "query_id": "8a2ad100-3a69-4c31-9604-1498fe67343a",
  "query_label": null,
  "request_id": "b25a7e06-2e63-49b5-bf7b-695f8adf2a30"
},
"rows": 1,
"statistics": {
  "bytes_read": 1,
  "elapsed": 0.006326,
  "rows_read": 1,
  "scanned_bytes_cache": 0,
  "scanned_bytes_storage": 0,
  "time_before_execution": 0.00023877,
  "time_to_execute": 8.7437e-05
}
}
}}
/>

The following code example checks whether the value 10, after being cast to a `REAL` data type, is an infinite number:

<QueryWindow
  content={{
"sql": "SELECT IS_INFINITE(10::REAL);",
"result": {
"data": [
  [
    false
  ]
],
"meta": [
  {
    "name": "?column?",
    "type": "boolean"
  }
],
"query": {
  "query_id": "55ef0424-a1c2-44c0-bafd-b7951023601e",
  "query_label": null,
  "request_id": "d5c3a724-b6ed-4fa9-9cd4-6a125f38645a"
},
"rows": 1,
"statistics": {
  "bytes_read": 1,
  "elapsed": 0.006244,
  "rows_read": 1,
  "scanned_bytes_cache": 0,
  "scanned_bytes_storage": 0,
  "time_before_execution": 0.000233629,
  "time_to_execute": 8.3737e-05
}
}
}}
/>
