/** * @param $price float Price to format. * * @return string Formatted price as numeric value. */ public static function formatNumericPrice($price) { return number_format($price, Currency::decimals(), Currency::decimalSeparator(), Currency::thousandsSeparator()); }