Re: NSScanner troubles
Re: NSScanner troubles
- Subject: Re: NSScanner troubles
- From: Ken Thomases <email@hidden>
- Date: Fri, 10 Dec 2010 21:27:24 -0600
On Dec 10, 2010, at 9:06 PM, WT wrote:
> Note that the scanner returns the wrong result when the string to be parsed contains a '.' but I can't see why.
NSScanner doesn't understand group separators, regardless of locale. You want to look into NSNumberFormatter.
Cheers,
Ken
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please 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