Re: Localized decimal point?
Re: Localized decimal point?
- Subject: Re: Localized decimal point?
- From: "Sean McBride" <email@hidden>
- Date: Sat, 11 Dec 2004 12:57:16 -0500
Mark Dawson (email@hidden) on Mon, Dec 6, 2004 5:20 PM said:
>I've seen code to create a set of valid characters:
>
>NSCharacterSet *disallowedCharacters = [[NSCharacterSet
>characterSetWithCharactersInString:@"0123456789.'"] invertedSet];
Also take a look at NSCharacterSet's decimalDigitCharacterSet method.
>However, the decimal point is a comma in Europe (i.e. 1/2 = 0.5 US 0,5
>France?). I don't know if there are any other decimal point
>variations. So, in the US, I want to allow ',', while NOT allowing a
>','; in a France allow/not allow the opposite.
There are other variations. There are also variations of the thousands
separators. For example, the number 10000 would be written "10.000" in
Argentina, "10 000" in Canada, "10,000" in USA, etc. Be careful what you
assume, it's tricky. :(
--
____________________________________________________________
Sean McBride, B. Eng email@hidden
Mac Software Designer Montréal, Québec, Canada
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden