Money

money

money will format the monetary value without a currency symbol suffix.

The default currency is USD

Input

<div>
{{ product.price | money: 'USD' }}
{{ 19.99 | money: 'EUR' }}
</div>

Output

<div>
$8.99
19.99
</div>

money_with_currency

money_with_currency will format the monetary value with a currency symbol suffix.

The default currency is USD

Input

<div>
{{ product.price | money_with_currency: 'USD' }}
{{ 19.99 | money_with_currency: 'EUR' }}
</div>

Output

<div>
$8.99 USD
19.99 EUR
</div>