# Merx::formatPercent()

> Formats a float to percent E.g. 0.19 → 19 % Similar to I18n::formatNumber()

- Read more: <https://merx2.wagnerwagner.de/guide/configuration/localization.md>
- Source: `src/Merx.php#L390` <https://github.com/wagnerwagner/merx/blob/2.0.0-alpha.11/src/Merx.php#L390>

```php
Merx::formatPercent(int|float $number, null|string $locale = null, null|int $maxFractionDigits = null): string
```

## Parameters

| Name | Type | Default |
| --- | --- | --- |
| `$number` | `int\|float` | `–` |
| `$locale` | `null\|string` | `null` |
| `$maxFractionDigits` | `null\|int` | `null` |

## Return type

`string`

## Parent class

`Wagnerwagner\Merx\Merx`
