> ## 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":"github-light","dark":"github-dark"}}
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:

```sql theme={"theme":{"light":"github-light","dark":"github-dark"}}
SELECT TYPEOF(RANDOM()) AS random_data_type;
```

**Returns:** `double precision`
