The library's reference - fx - is a fairly common namespace (think animation), which may clash with other scripts. fx.noConflict() available in standalone mode (not AMD/CJS) We recommend informing your users that exchange rates and currency conversion are for informational purposes only. 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. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |