• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: doubleValue (for an NSString)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: doubleValue (for an NSString)


  • Subject: Re: doubleValue (for an NSString)
  • From: Alastair Houghton <email@hidden>
  • Date: Thu, 20 Mar 2008 23:47:23 +0000

On 20 Mar 2008, at 23:38, John Stiles wrote:

Localization concerns still apply in theory but in practice there are few locales which don't use standard numeric characters. Actually, well, I don't know if sscanf knows about using "," for the decimal separator in Europe or not.

As long as you don't call setlocale(), you're using the C locale, which means the behaviour should be the same everywhere.


It's only if you change to a different locale that the separator and decimal point might change.

Kind regards,

Alastair.

--
http://alastairs-place.net




_______________________________________________

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


References: 
 >doubleValue (for an NSString) (From: Boyd Collier <email@hidden>)
 >Re: doubleValue (for an NSString) (From: Quincey Morris <email@hidden>)
 >Re: doubleValue (for an NSString) (From: John Stiles <email@hidden>)

  • Prev by Date: Re: doubleValue (for an NSString)
  • Next by Date: Re: Best Way To Lookup From a Huge Table
  • Previous by thread: Re: doubleValue (for an NSString)
  • Next by thread: doubleValue (for an NSString)
  • Index(es):
    • Date
    • Thread