> ## Documentation Index
> Fetch the complete documentation index at: https://docs.reelevant.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Parse Number

> Convert a string to a number

## Overview

The `parse-number` transformation converts a string value to a number.

## Syntax

```text theme={"theme":{"light":"github-light","dark":"github-dark"}}
parse-number(<variable>)
```

## Parameters

| Parameter  | Type   | Required | Description                           |
| ---------- | ------ | -------- | ------------------------------------- |
| `variable` | string | Yes      | The string value to parse as a number |

## Examples

```text theme={"theme":{"light":"github-light","dark":"github-dark"}}
parse-number(<variable>)
```

<Note>
  This transformation will attempt to parse the string as a number. If the string cannot be parsed, it may return an error or null value.
</Note>
