Skip to content

Kirby 4.5.0

I18n::formatNumber()

Formats a number

I18n::formatNumber(int|float $number, ?string $locale = null): string

Parameters

Name Type Default
$number * int|float
$locale string|null null

Return type

string

Parent class

Kirby\Toolkit\I18n