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

# Percentage

> Format a value as a percentage

## Overview

The `percentage` transformation multiplies a decimal value by 100 and formats it as a percentage string with the specified number of decimal places.

## Syntax

```text theme={"theme":{"light":"github-light","dark":"github-dark"}}
percentage(<variable>, decimal=2)
```

## Parameters

| Parameter  | Type   | Required | Description                                                         |
| ---------- | ------ | -------- | ------------------------------------------------------------------- |
| `variable` | number | Yes      | The decimal value to convert to percentage (e.g., 0.75 becomes 75%) |
| `decimal`  | number | Yes      | Number of decimal places in the output                              |

## Examples

```text theme={"theme":{"light":"github-light","dark":"github-dark"}}
percentage(<variable>, decimal=2)
percentage(<variable>, decimal=0)
```
