0

quotes.csv and IDR?

Hey there,

When I try to use quotes.csv to get a conversion rate between IDR and USD I get 0.0001, which makes me think perhaps there is no data for this... or maybe I'm doing something wrong? Any ideas?

http://download.finance.yahoo.com/d/quotes...f=l1&e=.csv

Thanks!

by
1 Reply
  • QUOTE (rwenderlich @ Jan 9 2010, 08:13 AM) <{POST_SNAPBACK}>
    Hey there,

    When I try to use quotes.csv to get a conversion rate between IDR and USD I get 0.0001, which makes me think perhaps there is no data for this... or maybe I'm doing something wrong? Any ideas?

    http://download.finance.yahoo.com/d/quotes...f=l1&e=.csv

    Thanks!

    The result is correct indeed: one IDR is very small compared to USD. I guess what you want is to convert USD to IDR. What I got was about 9285. One divide by that number is close to 0.0001, your earlier result.

    On a side note, I wonder how to increase the precision for IDRUSD, because if more significant digits were shown, you could see that it actually makes sense.
    0

Recent Posts

in PHP Development