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

# TYPEOF

> Reference material for TYPEOF function

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:

```
SELECT TYPEOF(RANDOM()) AS random_data_type;
```

| random\_data\_type text |
| :- |
| double precision |

Rows: 1Execution time: 4.45ms


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.