> ## 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 TYPEOF function

# TYPEOF

Returns the type of a given expression.

## Syntax

```sql theme={"theme":{"light":"css-variables","dark":"css-variables"}}
TYPEOF(<expression>)
```

## Parameters

| Parameter      | Description               | Supported input types |
| :------------- | :------------------------ | :-------------------- |
| `<expression>` | The expression to typeof. | Any                   |

## Return Types

A text of the given expression data type.

## Example

The following example returns the type of PI() function:

<div className="query-window">
  ```
  SELECT TYPEOF(RANDOM()) AS random_data_type;
  ```

  | random\_data\_type <span>text</span> |
  | :----------------------------------- |
  | double precision                     |

  <p><span>Rows: 1</span><span>Execution time: 4.45ms</span></p>
</div>
