Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Calculator has stopped 'converting'...

How can I get it back on track please?...

I can still multiply, divide, and conquer 🙂

but I can't convert, currency, weights, distance, etc...

I'm lost, please help me...thanks...

M

MacBook Pro - 'Matte Screen' no glossy crap..., Mac OS X (10.5.8), ipod nano - NEC 2690 'matte screen'

Posted on Sep 7, 2010 7:30 AM

Reply
Question marked as Best reply

Posted on Sep 7, 2010 8:51 AM

I haven't looked recently, but "Calculator.app" used to get its exchange rate information by contacting a web page at Apple that in turn got its information by scraping an IMF web page. In the past, if the layout of the original IMF page changed, the Apple page would parse it incorrectly, and "Calculator.app" would retrieve junk, causing currency conversions to fail.

The current version of "Calculator.app" appears to fail to perform any conversions whatsoever (not just limited to currency) if it fails to read the "~/Library/Application Support/Calculator/FinancialRates.xml" file, something it will try to do if there is a currency conversion is in the "Recent Conversions" list.

So until Apple fixes things from their end, if you need to perform currency conversions using "Calculator.app", it will likely be necessary to retrieve a valid "FinancialRates.xml" file from a backup, update it with current information by hand-editing it, then locking it to prevent "Calculator.app" from making further changes. I.e. it would probably be easier to use something else.

If you need to perform conversions other than currency, try deleting the recent conversions list (the property name is ' RecentConversionsDefaultsKey_1' from the "~/Library/Preferences/com.apple.Calculator.plist" file, then refrain from selecting "Currency…" from the "Convert" menu.

As long as there isn't a currency conversion in the "Recent Conversions" list, it should be possible to perform other conversions...

Edit: It appears Apple is getting its info from Yahoo these days, not from the IMF page.
33 replies

Feb 20, 2011 2:59 PM in response to Morris Taub

I managed to find a copy of FinancialRates.xml . It's old (Nov 30, 2007), but updating the rates by hand isn't difficult. http://www.kvarnen.dk/Pi%20Backup/Skole/Matematik/Calculator.app/Contents/Resour ces/FinancialRates.xml

In case the link goes down, here's the structure of the file:

<?xml version="1.0" encoding="UTF-8"?>
<response>
<result type="convertcurrency" timestamp="1196448943">
<list count="45" total="45">
( list of conversions )
</list>
</result>
</response>

Each conversion has the form:

<conversion>
<from>USD</from>
<to>AUD</to>
<amount>1</amount>
<convertedamount>1.1276509762</convertedamount>
<link> http://finance.yahoo.com/m3?a=1& amp;s=usd& amp;t=aud</link>
</conversion>
(Remove the spaces after the '&'s; I needed them to prevent autoformatting.)

Conversions exist from USD to: USD, AUD, BRL, GBP, CAD, CNY, DKK, EUR, HKD, INR, JPY, MYR, MXN, NZD, NOK, RUB, SGD, ZAR, KRW, LKR, SEK, CHF, TWD, THB, VEB, BHD, BND, CLP, CYP, CZK, HUF, ISK, IDR, ILS, KZT, KWD, MTL, MUR, NPR, OMR, PKR, QAR, SAR, SKK, AED . I have not been able to figure out how it translates abbreviations into currency names, so I would suggest keeping them in that order in case it's hardcoded.

Calculator has stopped 'converting'...

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.