Re: Convert spelled out numbers to digits?
Re: Convert spelled out numbers to digits?
- Subject: Re: Convert spelled out numbers to digits?
- From: "Eric E. Dolecki" <email@hidden>
- Date: Wed, 27 Mar 2013 16:51:23 -0400
!!!!!
Thank you :)
Google Voice: (508) 656-0622
Twitter: eric_dolecki XBoxLive: edolecki PSN: eric_dolecki
Imagineric <http://imagineric.ericd.net>
On Wed, Mar 27, 2013 at 3:51 PM, Kirk <email@hidden> wrote:
> NSNumberFormatter * nf = [[NSNumberFormatter new] autorelease];
> [nf setNumberStyle: NSNumberFormatterSpellOutStyle];
> NSLog(@"Survey Says...%@", [nf numberFromString:@"three"]);
>
> Yields "Survey Says...3"
>
> ** Also worked with "seventy-three" and "thirteen point five" **
>
> This was under iOS.
>
> Personally, I was gobsmacked at the results.
>
> Kirk Kerekes
> (iPhone)
>
_______________________________________________
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