system/View/Filters.php
public static function local_currency($value, string $currency, string $locale = null): string
	{
		helper('number');

		$options = [
			'type'     => NumberFormatter::CURRENCY,
			'currency' => $currency,
		];

		return format_number($value, 2, $locale, $options);
	}
public static function local_currency($value, string $currency, string $locale = null): string
	{
		helper('number');

		$options = [
			'type'     => NumberFormatter::CURRENCY,
			'currency' => $currency,
		];

		return format_number($value, 2, $locale, $options);
	}
Returns the $value displayed as a currency string.

@param $value
@param string      $currency
@param string|null $locale

@return string