You can choose the currency numral.js will format by default

Asked

Viewed 7 times

0

I wonder if there is any way to choose the currency in which the numeral will format, passing it by parameter, I would not like to use the locale, because in some situations it will not work, I am using so to format agr:

this.valueFormatted = numeral(value).format("$0,0.00")

this way returns me the value in R$, but I would like to for example pass as parameter a US$, and so return me already formatted in this currency

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.