


can use the library via the `money` reference, like so: `fx` is now back to whatever it was before money.js was loaded, and you Assign the money.js library to a global money object: If you're using another library that creates a global fx object or function, you can use fx.noConflict to restore that library's original value and also assign the money.js library object to another variable. For this case, money.js stores a reference to the previous global value of fx, if any, in case you need to restore it. 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.
