Merx::formatCurrency()
Formats a currency number E.g. 1045.12 → € 1,045.12 Similar to I18n::formatNumber()
Merx::formatCurrency(int|float $number, null|string $currency, null|string $locale = null, null|int $maxFractionDigits = null): string
Parameters
| Name | Type | Default |
|---|---|---|
$number |
int or float |
- |
$currency |
null or string |
- |
$locale |
null or string |
null |
$maxFractionDigits |
null or int |
null |
Return type
string