- Aug
- 2,263
- 108
Do you need to know what the current exchange rate is?
If I want to make a purchase of an item being sold in USD, I need to find out approx. how much that is in CAD.
This function will find the current exchange rate;
Now, if the item that I want to purchase is $89.10 USD;
For GBP,
Now, if the item that I want to purchase is $70.00 GBP;
Joe
If I want to make a purchase of an item being sold in USD, I need to find out approx. how much that is in CAD.
This function will find the current exchange rate;
Code:
function usd2can=`%@execstr[type "http://finance.yahoo.com/d/quotes.csv?f=l1&s=USDCAD=X"]`
Now, if the item that I want to purchase is $89.10 USD;
Code:
@echo The answer is: %((%@usd2can[]*89.1))
For GBP,
Code:
function gbp2can=`%@execstr[type "http://finance.yahoo.com/d/quotes.csv?f=l1&s=GBPCAD=X"]`
Now, if the item that I want to purchase is $70.00 GBP;
Code:
@echo The answer is: %((%@gbp2can[]*70.00))
Joe