Merx

Merx::formatPercent()

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

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

Parameters

Name Type Default
$number int or float -
$locale null or string null
$maxFractionDigits null or int null

Return type

string

Parent class

Wagnerwagner\Merx\Merx