![]() ![]() If you pass in a currency in from or to for which you don't have an exchange rate, money.js will throw an error to let you know that the rate wasn't found. If your exchange rates data source provides pounds (£) as "British Pounds Sterling", and you pass this directly into the rates object, you could use this instead of "GBP". Currency namesĬurrency names directly reference entries in the fx.rates object, so you're not limited to using the standard 3-letter currency codes. Fx.convert(12.99, - money.js will calculate the relative rate between the two currencies.
0 Comments
Leave a Reply. |