Re: API to convert string to number?
Re: API to convert string to number?
- Subject: Re: API to convert string to number?
- From: Sanjay Samani <email@hidden>
- Date: Tue, 27 Mar 2007 11:35:15 +0100 (BST)
> I tried using the method setExponentSymbol, but it has no effect. In
> fact, if I call exponentSymbol right after the set to check the value,
> I get nil. So what did I screw up now?
Eric,
I'm about to launch into something similar today. Did you get any joy with
this? I was working under the impression that the formatter would try to guess
the format of the string, but also use the settings you'd given as hints and
pointers, e.g., the locale, the exponent symbol, etc.
I'm guessing but haven't got into it yet but I wonder whether you need to do
the following to get it to work correctly with the exponents. (Was this
correct given a month since your last post?)
[number_formatter setStyle:NSNumberFormatterScientificStyle];
(Sorry would have sent this as a private message but can't get your email as
I'm booted into the wrong partition)
Thanks,
Sanjay
___________________________________________________________
What kind of emailer are you? Find out today - get a free analysis of your email personality. Take the quiz at the Yahoo! Mail Championship.
http://uk.rd.yahoo.com/evt=44106/*http://mail.yahoo.net/uk
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden