Open wjcrowcroft opened 12 years ago
Hell, that would be terrific. And it would be perfect if money.js had a set method in that style, for example:
fx("EUR/MXN").set(12.345678)
This is useful because sometimes I let the user input the exchange rate of an arbitrary currency pair, and I have to manually convert the rate to the base since I'm using the Forever Free plan of OpenExchangeRates, and I cannot change the base currency.
On second thought, I don't think what I just said is possible without assuming only one of the currencies exchange rate (relative to the base currency) is left unchanged.
A cool potential feature, logged for later - use money.js to get the rate for any given currency pair - if it wouldn't bloat the code too much
If anyone has thoughts on that, you know what to do.