Javatpoint Logo
Javatpoint Logo

Currency Filter

The currency filter is used to format a number as a currency. If you don't provide currency symbol as input then the default symbol for current locale is used.


Parameter explanation:

amount: It is a number type. It specifies the amount you have to enter as an input.

symbol: It is optional. It specifies the currency symbol or identifier to be displayed.

fractionSize: It is also optional. It specifies the number of decimal places to round the amount.

Let's take an example to demonstrate the currency filter to show the price of a commodity.

See this example:

Test it Now
Next TopicDate Filter

Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Trending Technologies

B.Tech / MCA